public interface UnivariateRealIntegrator extends ConvergingAlgorithm
Modifier and Type | Method and Description |
---|---|
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.
|
getAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy
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, java.lang.IllegalArgumentException
integrate(UnivariateRealFunction, double, double)
since 2.0min
- the lower bound for the intervalmax
- the upper bound for the intervalConvergenceException
- if the maximum iteration count is exceeded
or the integrator detects convergence problems otherwiseFunctionEvaluationException
- if an error occurs evaluating the
functionjava.lang.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, java.lang.IllegalArgumentException
f
- the integrand functionmin
- the lower bound for the intervalmax
- the upper bound for the intervalConvergenceException
- if the maximum iteration count is exceeded
or the integrator detects convergence problems otherwiseFunctionEvaluationException
- if an error occurs evaluating the functionjava.lang.IllegalArgumentException
- if min > max or the endpoints do not
satisfy the requirements specified by the integratordouble getResult() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if there is no result available, either
because no result was yet computed or the last attempt failedCopyright © 2010 - 2020 Adobe. All Rights Reserved