org.jscience.mathematics.analysis.quadrature
Interface PrimitiveMappingIntegrator

All Known Implementing Classes:
GaussLegendreIntegrator

public interface PrimitiveMappingIntegrator

This interface represents an integrator for scalar functions.

The classes which are devoted to integrate scalar functions should implement this interface. The functions which can be handled should implement the ComputableFunction interface.

See Also:
PrimitiveMapping

Method Summary
 double integrate(PrimitiveMapping f, double a, double b)
          Integrate a function over a defined range.
 

Method Detail

integrate

double integrate(PrimitiveMapping f,
                 double a,
                 double b)
                 throws MappingException
Integrate a function over a defined range.

Parameters:
f - function to integrate
a - first bound of the range (can be lesser or greater than b)
b - second bound of the range (can be lesser or greater than a)
Returns:
value of the integral over the range
Throws:
MappingException - if the underlying function throws one