Click or drag to resize

FitLinearGenericT(T, Double, DirectRegressionMethod, FuncT, Double) Method

Least-Squares fitting the points (T,y) = (T,y) to an arbitrary linear combination y : X -> p0*f0(T) + p1*f1(T) + ... + pk*fk(T), returning its best fitting parameters as [p0, p1, p2, ..., pk] array.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double[] LinearGeneric<T>(
	T[] x,
	double[] y,
	DirectRegressionMethod method,
	params Func<T, double>[] functions
)

Parameters

x  T

[Missing <param name="x"/> documentation for "M:Altaxo.Calc.Fit.LinearGeneric``1(``0[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{``0,System.Double}[])"]

y  Double

[Missing <param name="y"/> documentation for "M:Altaxo.Calc.Fit.LinearGeneric``1(``0[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{``0,System.Double}[])"]

method  DirectRegressionMethod

[Missing <param name="method"/> documentation for "M:Altaxo.Calc.Fit.LinearGeneric``1(``0[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{``0,System.Double}[])"]

functions  FuncT, Double

[Missing <param name="functions"/> documentation for "M:Altaxo.Calc.Fit.LinearGeneric``1(``0[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{``0,System.Double}[])"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Altaxo.Calc.Fit.LinearGeneric``1(``0[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{``0,System.Double}[])"]

Return Value

Double

[Missing <returns> documentation for "M:Altaxo.Calc.Fit.LinearGeneric``1(``0[],System.Double[],Altaxo.Calc.LinearRegression.DirectRegressionMethod,System.Func{``0,System.Double}[])"]

See Also