|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doodleproject.numerics4j.IterativeMethod
public abstract class IterativeMethod
A method to solve generic problems by finding successive (and hopefully better) approximations to the solution.
| Nested Class Summary | |
|---|---|
static interface |
IterativeMethod.IterativeState
The current state for an iterative method. |
| Constructor Summary | |
|---|---|
protected |
IterativeMethod()
Default constructor. |
protected |
IterativeMethod(int iterations,
double error)
Create an iterative method with the given number of maximum iterations and maximum relative error. |
| Method Summary | |
|---|---|
int |
getMaximumIterations()
Access the maximum number of iterations. |
double |
getMaximumRelativeError()
Access the maximum relative error. |
void |
iterate(IterativeMethod.IterativeState state)
Perform the iterative evaluation. |
void |
setMaximumIterations(int iterations)
Modify the maximum number of iterations. |
void |
setMaximumRelativeError(double error)
Modify the maximum relative error. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IterativeMethod()
protected IterativeMethod(int iterations,
double error)
iterations - maximum number of iterations.error - maximum relative error.| Method Detail |
|---|
public int getMaximumIterations()
public double getMaximumRelativeError()
public void iterate(IterativeMethod.IterativeState state)
throws NumericException
state - the state for this iterative method evaluation.
NumericException - if a solution to the iterative method can not be
computed.public void setMaximumIterations(int iterations)
iterations - the new maximum number of iterations value.public void setMaximumRelativeError(double error)
error - the new maximum relative error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||