R/mci.R

Defines functions mci

Documented in mci

#[export]
mci <- function(fun, R = 10^6) {
  x <- Rfast::Rnorm(R)
  mean( fun(x) )
}

 

Try the Rfast2 package in your browser

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

Rfast2 documentation built on May 29, 2024, 8:45 a.m.