powered by
Sampler derived using the eigendecomposition of the covariance matrix vcov.
vcov
rmnorm(n, mean, vcov)
an n by d matrix of samples
n
d
sample size
mean vector of length d
a square positive definite covariance matrix, of the same dimension as mean.
mean
rmnorm(n = 10, mean = c(0, 2), vcov = diag(2))
Run the code above in your browser using DataLab