public class TrapezoidIntegrator extends java.lang.Object implements SampledFunctionIntegrator
A trapezoid integrator is a very simple one that assumes the function is linear over the integration step.
| Constructor and Description |
|---|
TrapezoidIntegrator() |
| 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.