{ } Raw JSON

bundles / scipy latest / scipy / stats / _multivariate / matrix_t_frozen / rvs

function

scipy.stats._multivariate:matrix_t_frozen.rvs

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

Signature

def   rvs ( self size = 1 random_state = None )

Summary

Draw random samples from a matrix t distribution.

Parameters

size : integer, 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 or scalar

Random variates of size (size, dims), where dims is the dimension of the random matrices.

Notes

See class definition for a detailed description of parameters.

This method takes advantage of the two equivalent expressions of the probability density function. It samples a Cholesky factor of a random variate of the appropriate inverse Wishart distribution using the smaller of the row/column dimensions.

Aliases

  • scipy.stats._multivariate.matrix_t_frozen.rvs