R/fix0108.R

fix0108 <-
function (func = 1, a = 0, b = 1, n = 1000, alpha, beta, mu, 
    sigma, eta, kappa) 
{
    (sum(func(a + ((1:n - 0.5) * (b - a))/n, alpha, beta, mu, 
        sigma, eta, kappa)) * (b - a))/n
}

Try the EnvStats package in your browser

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

EnvStats documentation built on Sept. 11, 2024, 6:03 p.m.