|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.ConvergingAlgorithmImpl
org.apache.commons.math.analysis.integration.UnivariateRealIntegratorImpl
public abstract class UnivariateRealIntegratorImpl
Provide a default implementation for several generic functions.
Method Summary | |
---|---|
int |
getMinimalIterationCount()
Get the lower limit for the number of iterations. |
double |
getResult()
Access the last computed integral. |
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 class org.apache.commons.math.ConvergingAlgorithmImpl |
---|
getAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.math.analysis.integration.UnivariateRealIntegrator |
---|
integrate, integrate |
Methods inherited from interface org.apache.commons.math.ConvergingAlgorithm |
---|
getAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy |
Method Detail |
---|
public double getResult() throws IllegalStateException
getResult
in interface UnivariateRealIntegrator
IllegalStateException
- if no integral has been computedpublic 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.
setMinimalIterationCount
in interface UnivariateRealIntegrator
count
- minimum number of iterationspublic int getMinimalIterationCount()
getMinimalIterationCount
in interface UnivariateRealIntegrator
public void resetMinimalIterationCount()
The default value is supplied by the implementation.
resetMinimalIterationCount
in interface UnivariateRealIntegrator
UnivariateRealIntegrator.setMinimalIterationCount(int)
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |