Click or drag to resize

LinearFitBySvdFitPolymomial Method

Fits data provided as xcolumn and ycolumn with a polynomial base. Here special measures are taken (scaling of the x-variable) in order to keep the precision high.

Namespace: Altaxo.Calc.Regression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static LinearFitBySvd FitPolymomial(
	int order,
	IReadOnlyList<double> xValues,
	IReadOnlyList<double> yValues,
	int start,
	int count,
	bool doRemoveNaNValues
)

Parameters

order  Int32
The order of the fit (1:linear, 2:quadratic, etc.)
xValues  IReadOnlyListDouble
The column of x-values. Only those values are used, that are not NaN
yValues  IReadOnlyListDouble
The column of y-values.
start  Int32
Index of first data point to use.
count  Int32
Number of data points to use.
doRemoveNaNValues  Boolean
If true, value pairs containing NaN are removed before calculation of the fit.

Return Value

LinearFitBySvd
The fit.
See Also