Click or drag to resize

LinearFitBySvdFitPolymomialDestructive Method

Fits data provided as x and y arrays with a polynomial base.

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static LinearFitBySvd FitPolymomialDestructive(
	int order,
	double[] xValues,
	double[] yValues,
	double[]? errorValues,
	int count
)

Parameters

order  Int32
The order of the fit (1: linear, 2: quadratic, etc.).
xValues  Double
The array of x-values. The values of the array are modified during evaluation.
yValues  Double
The array of y-values.
errorValues  Double
The array of error values. If , error values are set to 1 for each element.
count  Int32
Number of values to use (array[0] ... array[count-1]).

Return Value

LinearFitBySvd
The fitted model.
Remarks
Special measures are taken (scaling of the x-variable) in order to keep precision high.
See Also