org.spaceroots.mantissa.quadrature.scalar
Interface ComputableFunctionIntegrator
-
- All Known Implementing Classes:
- GaussLegendreIntegrator
public interface ComputableFunctionIntegratorThis 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
ComputableFunctioninterface.- See Also:
ComputableFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description doubleintegrate(ComputableFunction f, double a, double b)Integrate a function over a defined range.
-
-
-
Method Detail
-
integrate
double integrate(ComputableFunction f, double a, double b) throws FunctionException
Integrate a function over a defined range.- Parameters:
f- function to integratea- 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:
FunctionException- if the underlying function throws one
-
-
DataMelt 3.0 © DataMelt by jWork.ORG