{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _multivariate / invwishart_gen / rvs

function

scipy.stats._multivariate:invwishart_gen.rvs

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

Signature

def   rvs ( self df scale size = 1 random_state = None )

Summary

Draw random samples from an inverse Wishart distribution.

Parameters

df : int

Degrees of freedom, must be greater than or equal to dimension of the scale matrix

scale : array_like

Symmetric positive definite scale matrix of the distribution

size : integer or iterable of integers, optional

Number of samples to draw (default 1).

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 : ndarray

Random variates of shape (size) + (dim, dim), where dim is the dimension of the scale matrix.

Aliases

  • scipy.stats._multivariate.invwishart_gen.rvs