# Interface FieldUnivariateIntegrator<T extends CalculusFieldElement<T>>

Type Parameters:
T - Type of the field elements.
All Known Implementing Classes:
BaseAbstractFieldUnivariateIntegrator, FieldMidPointIntegrator, FieldRombergIntegrator, FieldSimpsonIntegrator, FieldTrapezoidIntegrator, IterativeLegendreFieldGaussIntegrator

public interface FieldUnivariateIntegrator<T extends CalculusFieldElement<T>>
Interface for univariate real integration algorithms.
Since:
2.0
• ## 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

T integrate(int maxEval, CalculusFieldUnivariateFunction<T> f, T min, T max) throws
Integrate the function in the given interval.
Parameters:
maxEval - Maximum number of evaluations.
f - the integrand function
min - the lower bound for the interval
max - the upper bound for the interval
Returns:
the value of integral
Throws:
MathIllegalStateException - if the maximum number of function evaluations is exceeded
MathIllegalStateException - 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.
• ### 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