{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _multivariate / vonmises_fisher_frozen / rvs

function

scipy.stats._multivariate:vonmises_fisher_frozen.rvs

source: /scipy/stats/_multivariate.py :7687

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, optional

Given 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 seed is None (or np.random), the numpy.random.RandomState singleton is used. If seed is an int, a new RandomState instance is used, seeded with seed. If seed is already a Generator or RandomState instance then that instance is used.

Returns

rvs : ndarray or scalar

Random variates of size (size, N), where N is the dimension of the distribution.

Aliases

  • scipy.stats._multivariate.vonmises_fisher_frozen.rvs