bundles / scipy 1.17.1 / scipy / stats / _multivariate / dirichlet_gen / rvs
function
scipy.stats._multivariate:dirichlet_gen.rvs
Signature
def rvs ( self , alpha , size = 1 , random_state = None ) Summary
Draw random samples from a Dirichlet distribution.
Parameters
alpha: array_likeThe concentration parameters. The number of entries determines the dimensionality of the distribution.
size: int, optionalNumber of samples to draw (default 1).
seed: {None, int, np.random.RandomState, np.random.Generator}, optionalUsed for drawing random variates. If seed is
None, the~np.random.RandomStatesingleton is used. If seed is an int, a newRandomStateinstance is used, seeded with seed. If seed is already aRandomStateorGeneratorinstance, then that object is used. Default isNone.
Returns
rvs: ndarray or scalarRandom variates of size (
size,N), whereNis the dimension of the random variable.
Aliases
-
scipy.stats._multivariate.dirichlet_gen.rvs