|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.akutan.optimization.LMSolver
public class LMSolver
This class minimizes the objective function subject to the Levenberg-Marquardt algorithm. The specific steps are taken from Fletcher second edition.
| Field Summary | |
|---|---|
protected double |
_termCondition
This value seems to good enough for the test cases |
protected int |
_trace
Trace level, higher number for more logging |
| Constructor Summary | |
|---|---|
LMSolver()
|
|
| Method Summary | |
|---|---|
protected cern.colt.matrix.DoubleMatrix2D |
make2D(cern.colt.matrix.DoubleMatrix1D v)
Helper function that returns a (x,1) 2D matrix given a (x) vector |
void |
setTrace(int t)
Set the trace level |
cern.colt.matrix.DoubleMatrix1D |
solve(LMObjective objective,
cern.colt.matrix.DoubleMatrix1D x0)
Solves the cost function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double _termCondition
protected int _trace
| Constructor Detail |
|---|
public LMSolver()
| Method Detail |
|---|
public void setTrace(int t)
t - The trace level to setprotected cern.colt.matrix.DoubleMatrix2D make2D(cern.colt.matrix.DoubleMatrix1D v)
v - The vector to convert into a 1 column matrix
public cern.colt.matrix.DoubleMatrix1D solve(LMObjective objective,
cern.colt.matrix.DoubleMatrix1D x0)
objective - Cost or Objective function to be minimizedx0 - Vector of initial x values for the starting point of the
minimization.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||