MVG Multivariate Gaussian random number generator
by Chad Lieberman
31 Aug 2008
(Updated 04 Sep 2008)
Generates vectors from the multivariate normal distribution parameterized by specified mean vector a
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 02 Sep 2008 |
John D'Errico
|
|
|
| 05 Sep 2008 |
John D'Errico
|
|
|
| 18 Jan 2009 |
Jøger Hansegård
|
|
|
| Updates |
| 04 Sep 2008 |
- 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 |
|
Contact us at files@mathworks.com