LinearFitBySvdFitPolymomial Method |
Fits data provided as x and y sequences with a polynomial base.
Namespace: Altaxo.Calc.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic 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 sequence of x-values. Only those values are used that are not NaN.
- yValues IReadOnlyListDouble
- The sequence of y-values.
- start Int32
- Index of the first data point to use.
- count Int32
- Number of data points to use.
- doRemoveNaNValues Boolean
- If , value pairs containing NaN are removed before calculation of the fit.
Return Value
LinearFitBySvdThe fitted model.
Remarks
Special measures are taken (scaling of the x-variable) in order to keep precision high.
See Also