public class EnhancedSimpsonIntegrator extends java.lang.Object implements SampledFunctionIntegrator
A traditional Simpson integrator is based on a quadratic approximation of the function on three equally spaced points. This integrator does the same thing but can handle non-equally spaced points. If it is used on a regular sample, it behaves exactly as a traditional Simpson integrator.
| Constructor and Description |
|---|
EnhancedSimpsonIntegrator() |
| Modifier and Type | Method and Description |
|---|---|
double |
integrate(SampledFunctionIterator iter)
Integrate a sample over its overall range
|
public double integrate(SampledFunctionIterator iter) throws ExhaustedSampleException, FunctionException
SampledFunctionIntegratorintegrate in interface SampledFunctionIntegratoriter - iterator over the sample to integrateExhaustedSampleException - if the sample does not have
enough points for the integration schemeFunctionException - if the underlying sampled function throws oneCopyright © 2001-2007 Luc Maisonobe. All Rights Reserved.