R/rmunorm.R

Defines functions rmunorm

Documented in rmunorm

rmunorm=function(mu,sig){
#generator from the multivariate Gaussian

as.vector(mu+t(chol(sig))%*%rnorm(length(mu)))
}

Try the mcsm package in your browser

Any scripts or data that you put into this service are public.

mcsm documentation built on May 2, 2019, 10:16 a.m.