public abstract class LevenbergMarquardt
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
iterations
The iterations.
|
static int |
maxIterations
The max iterations.
|
double |
precision
The precision.
|
double |
rSquared
The r squared.
|
double |
sumOfSquares
The sum of squares.
|
| Constructor and Description |
|---|
LevenbergMarquardt() |
| Modifier and Type | Method and Description |
|---|---|
void |
gaussJordan(double[][] left,
double[][] right)
Gauss jordan.
|
abstract void |
getGradient(double[] x,
double[] parameters,
double[] dyda)
Gets the gradient.
|
abstract double |
getValue(double[] x,
double[] parameters)
Gets the value.
|
static void |
main(java.lang.String[] args)
The main method.
|
void |
solve(double[][] x,
double[] y,
double[] s,
int n,
double[] parameters,
boolean[] vary,
double[] error,
double lambda)
Solve.
|
public static int maxIterations
public int iterations
public double sumOfSquares
public double precision
public double rSquared
public void solve(double[][] x,
double[] y,
double[] s,
int n,
double[] parameters,
boolean[] vary,
double[] error,
double lambda)
x - the xy - the ys - the sn - the nparameters - the parametersvary - the varyerror - the errorlambda - the lambdapublic void gaussJordan(double[][] left,
double[][] right)
left - the leftright - the rightpublic abstract double getValue(double[] x,
double[] parameters)
x - the xparameters - the parameterspublic abstract void getGradient(double[] x,
double[] parameters,
double[] dyda)
x - the xparameters - the parametersdyda - the dydapublic static void main(java.lang.String[] args)
args - the arguments