R/mvn.R

Defines functions .rmvn

# single multivariate normal draw
.rmvn <- function(mean, sigma) {
  (rnorm(length(mean)) %*% chol(sigma))[1,] + mean
}

Try the nicheROVER package in your browser

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

nicheROVER documentation built on Oct. 13, 2023, 5:10 p.m.