hm: Monte Carlo Integration

View source: R/hm.R

hmR Documentation

Monte Carlo Integration

Description

Monte Carlo Integration

Usage

hm(h, a = 0, b = 1, c = 1, n = 1)

Arguments

h

function

a

lower limit

b

upper limit

c

max value of h function

n

number of generated points

Examples

h=function(x) sqrt(1-x^2)
hm(h,a=0,b=1,c=1,n=1e5)*4

ferielachaibou/stat617course documentation built on May 9, 2022, 12:05 a.m.