multivariate_normal

sherpa.utils.random.multivariate_normal(rng: Generator | RandomState | None, mean, cov, size=None) ndarray[source] [edit on github]

Create a random value from a multivariate normal distribution.

Parameters:
rngnumpy.random.Generator, numpy.random.RandomState, or None

Determines how the random numbers are created. If set to None then the numpy.random.multivariate_normal routine is used.

mean, cov

The mean and covariance matrix.

sizeoptional

The shape and number of elements to create.

Returns:
valuenumber or ndarray