public class RiemannIntegrator extends java.lang.Object implements SampledFunctionIntegrator
A Riemann integrator is a very simple one that assumes the function is constant over the integration step. Since it is very simple, this algorithm needs very small steps to achieve high accuracy, and small steps lead to numerical errors and instabilities.
This algorithm is almost never used and has been included in this package only as a simple template for more useful integrators.
TrapezoidIntegrator| Constructor and Description |
|---|
RiemannIntegrator() |
| 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.