bundles / scipy latest / scipy / stats / _multivariate / vonmises_fisher_gen / rvs
function
scipy.stats._multivariate:vonmises_fisher_gen.rvs
Signature
def rvs ( self , mu = None , kappa = 1 , size = 1 , random_state = None ) Summary
Draw random samples from a von Mises-Fisher distribution.
Parameters
mu: array_likeMean direction of the distribution. Must be a one-dimensional unit vector of norm 1.
kappa: floatConcentration parameter. Must be positive.
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, np.random.RandomState, np.random.Generator},optional
Used for drawing random variates. If
seedisNone, the~np.random.RandomStatesingleton is used. Ifseedis an int, a newRandomStateinstance is used, seeded with seed. Ifseedis already aRandomStateorGeneratorinstance, then that object is used. Default isNone.
Returns
rvs: ndarrayRandom variates of shape (
size,N), whereNis the dimension of the distribution.
Aliases
-
scipy.stats._multivariate.vonmises_fisher_gen.rvs