|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UnivariateRealIntegrator
Interface for univariate real integration algorithms.
Method Summary | |
---|---|
int |
getMinimalIterationCount()
Get the lower limit for the number of iterations. |
double |
getResult()
Get the result of the last run of the integrator. |
double |
integrate(double min,
double max)
Deprecated. replaced by integrate(UnivariateRealFunction, double, double)
since 2.0 |
double |
integrate(UnivariateRealFunction f,
double min,
double max)
Integrate the function in the given interval. |
void |
resetMinimalIterationCount()
Reset the lower limit for the number of iterations to the default. |
void |
setMinimalIterationCount(int count)
Set the lower limit for the number of iterations. |
Methods inherited from interface org.apache.commons.math.ConvergingAlgorithm |
---|
getAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy |
Method Detail |
---|
void setMinimalIterationCount(int count)
Minimal iteration is needed to avoid false early convergence, e.g. the sample points happen to be zeroes of the function. Users can use the default value or choose one that they see as appropriate.
A ConvergenceException
will be thrown if this number
is not met.
count
- minimum number of iterationsint getMinimalIterationCount()
void resetMinimalIterationCount()
The default value is supplied by the implementation.
setMinimalIterationCount(int)
@Deprecated double integrate(double min, double max) throws ConvergenceException, FunctionEvaluationException, IllegalArgumentException
integrate(UnivariateRealFunction, double, double)
since 2.0
min
- the lower bound for the intervalmax
- the upper bound for the interval
ConvergenceException
- if the maximum iteration count is exceeded
or the integrator detects convergence problems otherwise
FunctionEvaluationException
- if an error occurs evaluating the
function
IllegalArgumentException
- if min > max or the endpoints do not
satisfy the requirements specified by the integratordouble integrate(UnivariateRealFunction f, double min, double max) throws ConvergenceException, FunctionEvaluationException, IllegalArgumentException
f
- the integrand functionmin
- the lower bound for the intervalmax
- the upper bound for the interval
ConvergenceException
- if the maximum iteration count is exceeded
or the integrator detects convergence problems otherwise
FunctionEvaluationException
- if an error occurs evaluating the function
IllegalArgumentException
- if min > max or the endpoints do not
satisfy the requirements specified by the integratordouble getResult() throws IllegalStateException
IllegalStateException
- if there is no result available, either
because no result was yet computed or the last attempt failed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |