This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _multivariate / vonmises_fisher_gen / _rejection_sampling

function

scipy.stats._multivariate:vonmises_fisher_gen._rejection_sampling

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_multivariate.py:7402

Signature

def _rejection_sampling(self, dim, kappa, size, random_state)

Summary

Generate samples from an n-dimensional von Mises-Fisher distribution with mu = [1, 0, ..., 0] and kappa via rejection sampling. Samples then have to be rotated towards the desired mean direction mu. Reference: 10.1080/03610919408813161.

Aliases

  • scipy.stats._multivariate.vonmises_fisher_gen._rejection_sampling