{ } Raw JSON

bundles / scipy latest / scipy / stats / _multivariate / normal_inverse_gamma_gen / rvs

function

scipy.stats._multivariate:normal_inverse_gamma_gen.rvs

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

Signature

def   rvs ( self mu = 0 lmbda = 1 a = 1 b = 1 size = None random_state = None )

Summary

Draw random samples from the distribution.

Parameters

mu, lmbda, a, b : array_like, optional

Shape parameters. lmbda, a, and b must be greater than zero.

size : int or tuple of ints, optional

Shape of samples to draw.

random_state : {None, int, np.random.RandomState, np.random.Generator}, optional

Used for drawing random variates. If random_state is None, the ~np.random.RandomState singleton is used. If random_state is an int, a new RandomState instance is used, seeded with random_state. If random_state is already a RandomState or Generator instance, then that object is used. Default is None.

Returns

x, s2 : ndarray

Random variates.

Aliases

  • scipy.stats._multivariate.method