bundles / scipy latest / scipy / stats / _multivariate / matrix_t_frozen / rvs
function
scipy.stats._multivariate:matrix_t_frozen.rvs
Signature
def rvs ( self , size = 1 , random_state = None ) Summary
Draw random samples from a matrix t distribution.
Parameters
size: integer, 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,dims), wheredimsis 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