Click or drag to resize

QuickNonlinearRegressionFit(IReadOnlyListDouble, IReadOnlyListDouble, IReadOnlyListDouble, IReadOnlyListNullableDouble, IReadOnlyListNullableDouble, IReadOnlyListDouble, IReadOnlyListBoolean, CancellationToken, ActionInt32, Double, IReadOnlyListDouble) Method

Non-linear least square fitting by the Levenberg-Marquardt algorithm.

Namespace: Altaxo.Calc.Regression.Nonlinear
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public NonlinearMinimizationResult Fit(
	IReadOnlyList<double> xValues,
	IReadOnlyList<double> yValues,
	IReadOnlyList<double> initialGuess,
	IReadOnlyList<double?>? lowerBounds,
	IReadOnlyList<double?>? upperBounds,
	IReadOnlyList<double>? scales,
	IReadOnlyList<bool>? isFixed,
	CancellationToken cancellationToken,
	Action<int, double, IReadOnlyList<double>>? reportChi2Progress = null
)

Parameters

xValues  IReadOnlyListDouble
The x-values of the model to fit.
yValues  IReadOnlyListDouble
The y-values of the model to fit.
initialGuess  IReadOnlyListDouble
The initially guessed parameter values.
lowerBounds  IReadOnlyListNullableDouble
The lower bounds of the parameters. The array must have the same length as the parameter array. Provide null if not needed.
upperBounds  IReadOnlyListNullableDouble
The upper bounds of the parameters. The array must have the same length as the parameter array. Provide null if not needed.
scales  IReadOnlyListDouble
The scales of the parameters. The array must have the same length as the parameter array. Provide null if not needed.
isFixed  IReadOnlyListBoolean
Array of booleans, which provide which parameters are fixed. Must have the same length as the parameter array. Provide null if not needed.
cancellationToken  CancellationToken
Token to cancel the evaluation
reportChi2Progress  ActionInt32, Double, IReadOnlyListDouble  (Optional)
Event handler that can be used to report the NumberOfIterations, Chi² value and current parameter set achived so far. Can be null

Return Value

NonlinearMinimizationResult
The result of the Levenberg-Marquardt minimization
See Also