Click or drag to resize

NonLinearFit2LEVMAR_DER Method

Performs Levenberg-Marquardt minimization using an analytic Jacobian.

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static int LEVMAR_DER(
	NonLinearFit2FitFunction func,
	NonLinearFit2JacobianFunction jacf,
	double[] p,
	double[] x,
	double[]? weights,
	int itmax,
	double[]? opts,
	double[]? info,
	ref Object?? workingmemory,
	double[]? covar,
	Object? adata
)

Parameters

func  NonLinearFit2FitFunction
Functional relation describing the measurements.
jacf  NonLinearFit2JacobianFunction
Function used to evaluate the Jacobian.
p  Double
On input, the initial parameter estimates; on output, the estimated solution.
x  Double
Measurement vector.
weights  Double
Optional weights used to scale the fit differences.
itmax  Int32
Maximum number of iterations.
opts  Double
Minimization options [μ, ε1, ε2, ε3], or to use defaults.
info  Double
Optional information array that receives details about the minimization process.
workingmemory  Object
Working memory object that is reused between calls.
covar  Double
Optional covariance matrix corresponding to the least-squares solution.
adata  Object
Optional additional data passed through to func and jacf.

Return Value

Int32
The number of iterations if the minimization succeeds; otherwise, -1.
See Also