|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.utils.JWLUDecomp
Class for finding the solution of a set of linear algrbraic equations via LU decomposition. Adapted from the algorithm documented in Numerical Receipes in C (Press et al, 1988, pp.43-45).
Constructor Summary | |
JWLUDecomp(float[][] lhs)
Creates the LU Decomposed matrix based on LHS of a set of normal equations equations. |
|
JWLUDecomp(float[][] lhs,
float[] rhs)
Solves a set of linear equations provided by a matrix holding the left hand side and a vector holding the right hand side. |
Method Summary | |
float[] |
getCoeff()
Reports the solved coefficients. |
void |
luBackSub(float[] rhs)
Performs forward and back substitution on an LU decomposed matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JWLUDecomp(float[][] lhs, float[] rhs)
lhs
- Matrix holding LHS of equations to solve.rhs
- Vector holding RHS of equations to solve.public JWLUDecomp(float[][] lhs)
lhs
- Matrix holding LHS of normal equations to solve.Method Detail |
public float[] getCoeff()
public void luBackSub(float[] rhs)
rhs
- RHS of equations to be solved. The array of supplied
values gets replaced with the solved coeffients.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |