rmvnormal {rags2ridges} | R Documentation |
Multivariate Gaussian simulation
Description
Fast simulation from multivariate Gaussian probability distribution.
Usage
rmvnormal(n, mu, sigma)
Arguments
n |
An |
mu |
A |
sigma |
A variance-covariance |
Details
The rmvnormal
function is copied from the GMCM
-package. It is
similar to rmvnorm
from the mvtnorm
-package.
Value
Returns a n
by p
matrix of observations from a
multivariate normal distribution with the given mean mu
and
covariance
Author(s)
Anders Ellern Bilgrau
Examples
rmvnormal(n = 10, mu = 1:4, sigma = diag(4))
[Package rags2ridges version 2.2.7 Index]