|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provide an interface to algorithms for solving for zeros of real univariate functions. An implementation will only search for one zero in the given interval.
Method Summary | |
double |
getAbsoluteAccuracy()
Get the actual absolute accuracy. |
double |
getFunctionValueAccuracy()
Get the actual function value accuracy. |
int |
getIterationCount()
Get the number of iterations in the last run of the solver. |
int |
getMaximalIterationCount()
Get the upper limit for the number of iterations. |
double |
getRelativeAccuracy()
Get the actual relative accuracy. |
double |
getResult()
Get the result of the last run of the solver. |
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. |
double |
solve(double min,
double max)
Solve for a zero root in the given interval. |
double |
solve(double min,
double max,
double startValue)
Solve for a zero in the given interval, start at startValue. |
Method Detail |
public void setMaximalIterationCount(int count)
count
- maximum number of iterationspublic int getMaximalIterationCount()
public void resetMaximalIterationCount()
setMaximalIterationCount(int)
public void setAbsoluteAccuracy(double accuracy) throws MathException
accuracy
- the accuracy.
MathException
- if the accuracy can't be achieved by the solver or
is otherwise deemed unreasonable.public double getAbsoluteAccuracy()
public void resetAbsoluteAccuracy()
public void setRelativeAccuracy(double accuracy) throws MathException
accuracy
- the relative accuracy.
MathException
- if the accuracy can't be achieved by the solver or
is otherwise deemed unreasonable.public double getRelativeAccuracy()
public void resetRelativeAccuracy()
public void setFunctionValueAccuracy(double accuracy) throws MathException
accuracy
- the accuracy.
MathException
- if the accuracy can't be achieved by the solver or
is otherwise deemed unreasonable.public double getFunctionValueAccuracy()
public void resetFunctionValueAccuracy()
public double solve(double min, double max) throws MathException
min
- the lower bound for the interval.max
- the upper bound for the interval.
MathException
- if the iteration count was exceeded or the
solver detects convergence problems otherwise.public double solve(double min, double max, double startValue) throws MathException
min
- the lower bound for the interval.max
- the upper bound for the interval.startValue
- the start value to use
MathException
- if the iteration count was exceeded or the
solver detects convergence problems otherwise.public double getResult() throws MathException
MathException
- if there is no result available, either
because no result was yet computed or the last attempt failed.public int getIterationCount() throws MathException
MathException
- 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 |