|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.analysis.UnivariateRealSolverImpl
public abstract class UnivariateRealSolverImpl
Provide a default implementation for several functions useful to generic solvers.
Method Summary | |
---|---|
double |
getAbsoluteAccuracy()
Get the actual absolute accuracy. |
double |
getFunctionValueAccuracy()
Get the actual function value accuracy. |
int |
getIterationCount()
Access the last iteration count. |
int |
getMaximalIterationCount()
Get the upper limit for the number of iterations. |
double |
getRelativeAccuracy()
Get the actual relative accuracy. |
double |
getResult()
Access the last computed root. |
void |
resetAbsoluteAccuracy()
Reset the absolute accuracy to the default. |
void |
resetFunctionValueAccuracy()
Reset the actual function accuracy to the default. |
void |
resetMaximalIterationCount()
Reset the upper limit for the number of iterations to the default. |
void |
resetRelativeAccuracy()
Reset the relative accuracy to the default. |
void |
setAbsoluteAccuracy(double accuracy)
Set the absolute accuracy. |
void |
setFunctionValueAccuracy(double accuracy)
Set the function value accuracy. |
void |
setMaximalIterationCount(int count)
Set the upper limit for the number of iterations. |
void |
setRelativeAccuracy(double accuracy)
Set the relative accuracy. |
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.UnivariateRealSolver |
---|
solve, solve |
Method Detail |
---|
public double getResult()
getResult
in interface UnivariateRealSolver
java.lang.IllegalStateException
- if no root has been computedpublic int getIterationCount()
getIterationCount
in interface UnivariateRealSolver
java.lang.IllegalStateException
- if no root has been computedpublic void setAbsoluteAccuracy(double accuracy)
setAbsoluteAccuracy
in interface UnivariateRealSolver
accuracy
- the accuracy.
java.lang.IllegalArgumentException
- if the accuracy can't be achieved by
the solver or is otherwise deemed unreasonable.public double getAbsoluteAccuracy()
getAbsoluteAccuracy
in interface UnivariateRealSolver
public void resetAbsoluteAccuracy()
resetAbsoluteAccuracy
in interface UnivariateRealSolver
public void setMaximalIterationCount(int count)
setMaximalIterationCount
in interface UnivariateRealSolver
count
- maximum number of iterationspublic int getMaximalIterationCount()
getMaximalIterationCount
in interface UnivariateRealSolver
public void resetMaximalIterationCount()
resetMaximalIterationCount
in interface UnivariateRealSolver
UnivariateRealSolver.setMaximalIterationCount(int)
public void setRelativeAccuracy(double accuracy)
setRelativeAccuracy
in interface UnivariateRealSolver
accuracy
- the relative accuracy.
java.lang.IllegalArgumentException
- if the accuracy can't be achieved by
the solver or is otherwise deemed unreasonable.public double getRelativeAccuracy()
getRelativeAccuracy
in interface UnivariateRealSolver
public void resetRelativeAccuracy()
resetRelativeAccuracy
in interface UnivariateRealSolver
public void setFunctionValueAccuracy(double accuracy)
setFunctionValueAccuracy
in interface UnivariateRealSolver
accuracy
- the accuracy.
java.lang.IllegalArgumentException
- if the accuracy can't be achieved by
the solver or is otherwise deemed unreasonable.public double getFunctionValueAccuracy()
getFunctionValueAccuracy
in interface UnivariateRealSolver
public void resetFunctionValueAccuracy()
resetFunctionValueAccuracy
in interface UnivariateRealSolver
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |