R/sampling.R

Defines functions my_mvrnorm

### Functions used in sampling

my_mvrnorm = function(mu, sigma) {
  return(as.vector(mu + t(chol(sigma))%*%rnorm(length(mu), 0, 1)))
}

Try the BSTFA package in your browser

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

BSTFA documentation built on Aug. 28, 2025, 9:09 a.m.