{ } Raw JSON

bundles / scipy latest / scipy / stats / _multivariate / multivariate_hypergeom_frozen / rvs

function

scipy.stats._multivariate:multivariate_hypergeom_frozen.rvs

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

Signature

def   rvs ( self size = 1 random_state = None )

Summary

Draw random samples from a multivariate hypergeometric distribution.

Parameters

size : integer or iterable of integers, optional

Number of samples to draw. Default is None, in which case a single variate is returned as an array with shape m.shape.

seed : {None, int, np.random.RandomState, np.random.Generator}, optional

Used for drawing random variates. If seed is None, the ~np.random.RandomState singleton is used. If seed is an int, a new RandomState instance is used, seeded with seed. If seed is already a RandomState or Generator instance, then that object is used. Default is None.

Returns

rvs : array_like

Random variates of shape size or m.shape (if size=None).

Notes

See class definition for a detailed description of parameters.

Also note that NumPy's multivariate_hypergeometric sampler is not used as it doesn't support broadcasting.

Aliases

  • scipy.stats._multivariate.multivariate_hypergeom_frozen.rvs