integ: Numerical Integral function using Simpson's rule
Description
Numerical Integral function using Simpson's rule
Usage
integ(x, fx, method, n.pts = 256)
Arguments
- x
The numeric data vector.
- fx
The function.
- method
The character string specifying method of numerical integration. The possible options are trap
for trapezoidal rule and simps
for simpson'r rule.
- n.pts
Number of points.