SimpsonInt {NPHazardRate} | R Documentation |
Simpson numerical integration
Description
Implements Simpson's extended numerical integration rule
Usage
SimpsonInt(xin, h)
Arguments
xin |
A vector of data points |
h |
grid length |
Details
The extended numerical integration rule is given by
Value
returns the approximate integral value
References
Weisstein, Eric W. "Simpson's Rule." From MathWorld–A Wolfram Web Resource
[Package NPHazardRate version 0.1 Index]