Top Description Methods
org.apache.commons.math3.analysis.integration

public Interface UnivariateIntegrator

Known Direct Implementers
org.apache.commons.math3.analysis.integration.BaseAbstractUnivariateIntegrator
Imports
org.apache.commons.math3.analysis.UnivariateFunction, org.apache.commons.math3.exception.MathIllegalArgumentException, .MaxCountExceededException, .NullArgumentException, .TooManyEvaluationsException

Interface for univariate real integration algorithms.
Since
1.2

Method Summary

Modifier and TypeMethod and Description
public double

Returns:

the accuracy
getAbsoluteAccuracy
()

Get the absolute accuracy.

public int

Returns:

number of function evaluations
getEvaluations
()

Get the number of function evaluations of the last run of the integrator.

public int

Returns:

number of iterations
getIterations
()

Get the number of iterations of the last run of the integrator.

public int

Returns:

the actual upper limit
getMaximalIterationCount
()

Get the upper limit for the number of iterations.

public int

Returns:

the actual min limit
getMinimalIterationCount
()

Get the min limit for the number of iterations.

public double

Returns:

the accuracy
getRelativeAccuracy
()

Get the relative accuracy.

public double

Returns:

the value of integral
integrate
(int
Maximum number of evaluations.
maxEval
,
UnivariateFunction
the integrand function
f
,
double
the lower bound for the interval
min
,
double
the upper bound for the interval
max
)

Integrate the function in the given interval.

Method Detail

getAbsoluteAccuracyback to summary
public double getAbsoluteAccuracy()

Get the absolute accuracy.

Returns:double

the accuracy

getEvaluationsback to summary
public int getEvaluations()

Get the number of function evaluations of the last run of the integrator.

Returns:int

number of function evaluations

getIterationsback to summary
public int getIterations()

Get the number of iterations of the last run of the integrator.

Returns:int

number of iterations

getMaximalIterationCountback to summary
public int getMaximalIterationCount()

Get the upper limit for the number of iterations.

Returns:int

the actual upper limit

getMinimalIterationCountback to summary
public int getMinimalIterationCount()

Get the min limit for the number of iterations.

Returns:int

the actual min limit

getRelativeAccuracyback to summary
public double getRelativeAccuracy()

Get the relative accuracy.

Returns:double

the accuracy

integrateback to summary
public double integrate(int maxEval, UnivariateFunction f, double min, double max) throws TooManyEvaluationsException, MaxCountExceededException, MathIllegalArgumentException, NullArgumentException

Integrate the function in the given interval.

Parameters
maxEval:int

Maximum number of evaluations.

f:UnivariateFunction

the integrand function

min:double

the lower bound for the interval

max:double

the upper bound for the interval

Returns:double

the value of integral

Exceptions
TooManyEvaluationsException:
if the maximum number of function evaluations is exceeded
MaxCountExceededException:
if the maximum iteration count is exceeded or the integrator detects convergence problems otherwise
MathIllegalArgumentException:
if min > max or the endpoints do not satisfy the requirements specified by the integrator
NullArgumentException:
if f is null.