bundles / scipy 1.17.1 / scipy / stats / _multivariate / vonmises_fisher_frozen / rvs
function
scipy.stats._multivariate:vonmises_fisher_frozen.rvs
Signature
def rvs ( self , size = 1 , random_state = None ) Summary
Draw random variates from the Von Mises-Fisher distribution.
Parameters
size: int or tuple of ints, optionalGiven a shape of, for example, (m,n,k), m*n*k samples are generated, and packed in an m-by-n-by-k arrangement. Because each sample is N-dimensional, the output shape is (m,n,k,N). If no shape is specified, a single (N-D) sample is returned.
random_state: {None, int, `numpy.random.Generator`,numpy.random.RandomState}, optional
If
seedis None (ornp.random), the numpy.random.RandomState singleton is used. Ifseedis an int, a newRandomStateinstance is used, seeded withseed. Ifseedis already aGeneratororRandomStateinstance then that instance is used.
Returns
rvs: ndarray or scalarRandom variates of size (
size,N), whereNis the dimension of the distribution.
Aliases
-
scipy.stats._multivariate.vonmises_fisher_frozen.rvs