LinearFitBySvdFitPolymomialDestructive Method |
Fits data provided as x and y arrays with a polynomial base.
Namespace: Altaxo.Calc.RegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic 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
LinearFitBySvdThe fitted model.
Remarks
Special measures are taken (scaling of the x-variable) in order to keep precision high.
See Also