Interface UnivariateIntegrator
- All Known Implementing Classes:
 BaseAbstractUnivariateIntegrator,IterativeLegendreGaussIntegrator,MidPointIntegrator,RombergIntegrator,SimpsonIntegrator,TrapezoidIntegrator
public interface UnivariateIntegrator
Interface for univariate real integration algorithms.
- 
Method Summary
Modifier and TypeMethodDescriptiondoubleGet the absolute accuracy.intGet the number of function evaluations of the last run of the integrator.intGet the number of iterations of the last run of the integrator.intGet the upper limit for the number of iterations.intGet the min limit for the number of iterations.doubleGet the relative accuracy.doubleintegrate(int maxEval, UnivariateFunction f, double min, double max) Integrate the function in the given interval. 
- 
Method Details
- 
getRelativeAccuracy
double getRelativeAccuracy()Get the relative accuracy.- Returns:
 - the accuracy
 
 - 
getAbsoluteAccuracy
double getAbsoluteAccuracy()Get the absolute accuracy.- Returns:
 - the accuracy
 
 - 
getMinimalIterationCount
int getMinimalIterationCount()Get the min limit for the number of iterations.- Returns:
 - the actual min limit
 
 - 
getMaximalIterationCount
int getMaximalIterationCount()Get the upper limit for the number of iterations.- Returns:
 - the actual upper limit
 
 - 
integrate
double integrate(int maxEval, UnivariateFunction f, double min, double max) throws MathIllegalArgumentException, MathIllegalStateException, NullArgumentException Integrate the function in the given interval.- Parameters:
 maxEval- Maximum number of evaluations.f- the integrand functionmin- the lower bound for the intervalmax- the upper bound for the interval- Returns:
 - the value of integral
 - Throws:
 MathIllegalStateException- if the maximum number of function evaluations is exceededMathIllegalStateException- if the maximum iteration count is exceeded or the integrator detects convergence problems otherwiseMathIllegalArgumentException- ifmin > maxor the endpoints do not satisfy the requirements specified by the integratorNullArgumentException- iffisnull.
 - 
getEvaluations
int getEvaluations()Get the number of function evaluations of the last run of the integrator.- Returns:
 - number of function evaluations
 
 - 
getIterations
int getIterations()Get the number of iterations of the last run of the integrator.- Returns:
 - number of iterations
 
 
 -