public class SimpsonIntegrator1D extends Integrator1D<Double,Double>
This class is a wrapper for the Commons Math library implementation of Simpson integration.
| Constructor and Description |
|---|
SimpsonIntegrator1D() |
| Modifier and Type | Method and Description |
|---|---|
Double |
integrate(Function<Double,Double> f,
Double lower,
Double upper)
Simpson's integration method.
|
integratepublic Double integrate(Function<Double,Double> f, Double lower, Double upper)
Note that the Commons implementation fails if the lower bound is larger than the upper - in this case, the bounds are reversed and the result negated.
integrate in class Integrator1D<Double,Double>f - The function to integrate, not nulllower - The lower bound, not nullupper - The upper bound, not nullCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.