org.jscience.mathematics.analysis.quadrature
Interface SampledMappingNDIntegrator

All Known Implementing Classes:
EnhancedSimpsonNDIntegrator, RiemannNDIntegrator, TrapezoidNDIntegrator

public interface SampledMappingNDIntegrator

This interface represents an integrator for vectorial samples.

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

See Also:
SampledMappingIterator, PrimitiveMappingNDIntegrator

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