bundles / scipy 1.18.0 / scipy / stats / _multivariate / invwishart_gen / rvs
function
scipy.stats._multivariate:invwishart_gen.rvs
Signature
def rvs(self, df, scale, size = 1, random_state = None)Summary
Draw random samples from an inverse Wishart distribution.
Parameters
df: intDegrees of freedom, must be greater than or equal to dimension of the scale matrix
scale: array_likeSymmetric positive definite scale matrix of the distribution
size: int or iterable of integers, 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 is None.
Returns
rvs: ndarrayRandom variates of shape (
size) + (dim,dim), wheredimis the dimension of the scale matrix.
Aliases
scipy.stats._multivariate.invwishart_gen.rvs