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:
rng (numpy.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 – The mean and covariance matrix.
cov – The mean and covariance matrix.
size (optional) – The shape and number of elements to create.
- Returns:
value
- Return type:
number or ndarray