R/compute.integral.R

"compute.integral" <-
function(Fun, subdivisions=1000) {
  l <- stats::integrate(Fun, 0, 1, subdivisions=subdivisions);
	return(l$value);
}

Try the mosclust package in your browser

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

mosclust documentation built on June 8, 2025, 11:23 a.m.