|
MVT API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--math.numerics.FindRoot
The class FindRoot is used to solve a system of equations for a root nearby a user-supplied initial guess. This uses simple newton's method. Future releases will couple newton's method with line searches and allow for n-dimensional systems.
| Constructor Summary | |
FindRoot(FunctionList f,
VariableSet v,
double[] ig)
|
|
FindRoot(FunctionList f,
VariableSet v,
double[] ig,
int maxIts,
double eps)
|
|
FindRoot(Function f,
Variable var,
double init)
|
|
| Method Summary | |
int |
getDimension()
Get the value of dimension. |
double[] |
getInitGuesses()
Get the value of initGuesses. |
double[][] |
newton()
This method performins the Newton iteration. |
void |
setDimension(int v)
Set the value of dimension. |
void |
setFunctions(FunctionList f)
|
void |
setInitGuesses(double[] v)
Set the value of initGuesses. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FindRoot(FunctionList f,
VariableSet v,
double[] ig,
int maxIts,
double eps)
public FindRoot(FunctionList f,
VariableSet v,
double[] ig)
public FindRoot(Function f,
Variable var,
double init)
| Method Detail |
public double[][] newton()
throws VariableUndefinedException,
UnacceptableVariableException,
SingularJacobianException,
ExcessiveIterationsException
VariableUndefinedException - for undefined variables
UnacceptableVariableException - for variables using
illegal characers
SingularJacobianException - is thrown whenever
jacobian determinant of system vanishes.
ExcessiveIterationException - is thrown whenever
a specified number of
iterations occur before newton converges to a root
within the prescribed level of tolerance.
ExcessiveIterationsExceptionpublic void setFunctions(FunctionList f)
public int getDimension()
public void setDimension(int v)
v - Value to assign to dimension.public double[] getInitGuesses()
public void setInitGuesses(double[] v)
v - Value to assign to initGuesses.
|
MVT API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||