public class LevenbergMarquardt
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double[] |
fittedValues
The fitted values.
|
double[] |
parameters
The fitted parameters.
|
double[] |
residuals
The residuals.
|
double |
sse
The sum of squares due to error.
|
| Modifier and Type | Method and Description |
|---|---|
static LevenbergMarquardt |
fit(DifferentiableMultivariateFunction func,
double[][] x,
double[] y,
double[] p)
Fits the nonlinear least squares.
|
static LevenbergMarquardt |
fit(DifferentiableMultivariateFunction func,
double[][] x,
double[] y,
double[] p,
double stol,
int maxIter)
Fits the nonlinear least squares.
|
static LevenbergMarquardt |
fit(DifferentiableMultivariateFunction func,
double[] x,
double[] y,
double[] p)
Fits the nonlinear least squares.
|
static LevenbergMarquardt |
fit(DifferentiableMultivariateFunction func,
double[] x,
double[] y,
double[] p,
double stol,
int maxIter)
Fits the nonlinear least squares.
|
public final double[] parameters
public final double[] fittedValues
public final double[] residuals
public final double sse
public static LevenbergMarquardt fit(DifferentiableMultivariateFunction func, double[] x, double[] y, double[] p)
func - the curve function.x - independent variable.y - the observations.p - the initial parameters.public static LevenbergMarquardt fit(DifferentiableMultivariateFunction func, double[] x, double[] y, double[] p, double stol, int maxIter)
func - the curve function. Of the input variable x, the first d
elements are hyper-parameters to be fit. The rest is the
independent variable.x - independent variable.y - the observations.p - the initial parameters.stol - the scalar tolerances on fractional improvement in sum of squaresmaxIter - the maximum number of allowed iterations.public static LevenbergMarquardt fit(DifferentiableMultivariateFunction func, double[][] x, double[] y, double[] p)
func - the curve function.x - independent variables.y - the observations.p - the initial parameters.public static LevenbergMarquardt fit(DifferentiableMultivariateFunction func, double[][] x, double[] y, double[] p, double stol, int maxIter)
func - the curve function. Of the input variable x, the first d
elements are hyper-parameters to be fit. The rest is the
independent variable.x - independent variables.y - the observations.p - the initial parameters.stol - the scalar tolerances on fractional improvement in sum of squaresmaxIter - the maximum number of allowed iterations.