MVG Multivariate Gaussian random number generator

Generates vectors from the multivariate normal distribution parameterized by specified mean vector a

Vous suivez désormais cette soumission

MVG is a multivariate Gaussian (normal) random number generator. A user can generate a vector from the multivariate normal distribution of any dimension by specifying a mean vector and symmetric positive-definite covariance matrix. A linear transformation based on the Cholesky decomposition of the covariance matrix is applied to a set of realizations from the distribution N(0,I). By applying the linear transformation to those samples, the output is a matrix whose columns are samples drawn from the distribution N(mu,Sigma) where mu is the specified mean vector and Sigma is an SPD covariance matrix. Type help mvg to learn more.

Citation pour cette source

Chad Lieberman (2026). MVG Multivariate Gaussian random number generator (https://fr.mathworks.com/matlabcentral/fileexchange/21279-mvg-multivariate-gaussian-random-number-generator), MATLAB Central File Exchange. Extrait(e) le .

Catégories

En savoir plus sur Random Number Generation dans Help Center et MATLAB Answers

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0.0

- used Cholesky decomposition to transform from N(0,I) to N(mu,Sigma)
- constructed appropriate H1 line
- used randn instead of generating approximate normals via rand and central limit theorem