org.jscience.mathematics.analysis.quadrature
Interface SampledMappingIntegrator

All Known Implementing Classes:
EnhancedSimpsonIntegrator, RiemannIntegrator, TrapezoidIntegrator

public interface SampledMappingIntegrator

This interface represents an integrator for scalar samples.

The classes which are devoted to integrate scalar samples should implement this interface.

See Also:
SampledMappingIntegrator, PrimitiveMappingIntegrator

Method Summary
 double integrate(SampledMappingIterator iter)
          Integrate a sample over its overall range
 

Method Detail

integrate

double integrate(SampledMappingIterator iter)
                 throws ExhaustedSampleException,
                        MappingException
Integrate a sample over its overall range

Parameters:
iter - iterator over the sample to integrate
Returns:
value of the integral over the sample range
Throws:
ExhaustedSampleException - if the sample does not have enough points for the integration scheme
MappingException - if the underlying sampled function throws one