Faster than mvtnorm::rmvnorm(). Implemented in C.

rmvnorm(n, mu, Cov, is_chol = FALSE)

Arguments

n

amount of samples to generate from

mu

column vector for the mean

Cov

covariance matrix

is_chol

if TRUE, Cov is the upper Cholesky factor of Cov

Value

a nxp matrix of samples

See also