Click or drag to resize

PolynomialFit Method

Least-Squares fitting the points (x,y) to a k-order polynomial y : x -> p0 + p1*x + p2*x^2 + ... + pk*x^k

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static Polynomial Fit(
	double[] x,
	double[] y,
	int order,
	DirectRegressionMethod method = DirectRegressionMethod.QR
)

Parameters

x  Double

[Missing <param name="x"/> documentation for "M:Altaxo.Calc.Polynomial.Fit(System.Double[],System.Double[],System.Int32,Altaxo.Calc.LinearRegression.DirectRegressionMethod)"]

y  Double

[Missing <param name="y"/> documentation for "M:Altaxo.Calc.Polynomial.Fit(System.Double[],System.Double[],System.Int32,Altaxo.Calc.LinearRegression.DirectRegressionMethod)"]

order  Int32

[Missing <param name="order"/> documentation for "M:Altaxo.Calc.Polynomial.Fit(System.Double[],System.Double[],System.Int32,Altaxo.Calc.LinearRegression.DirectRegressionMethod)"]

method  DirectRegressionMethod  (Optional)

[Missing <param name="method"/> documentation for "M:Altaxo.Calc.Polynomial.Fit(System.Double[],System.Double[],System.Int32,Altaxo.Calc.LinearRegression.DirectRegressionMethod)"]

Return Value

Polynomial

[Missing <returns> documentation for "M:Altaxo.Calc.Polynomial.Fit(System.Double[],System.Double[],System.Int32,Altaxo.Calc.LinearRegression.DirectRegressionMethod)"]

See Also