Click or drag to resize

FitLinearGenericT(T, Double, 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.3572.0 (4.8.3572.0)
Syntax
C#
public static double[] LinearGeneric<T>(
	T[] x,
	double[] y,
	params Func<T, double>[] functions
)

Parameters

x  T
The x values of the sample points.
y  Double
The y values of the sample points.
functions  FuncT, Double
The basis functions of the linear combination.

Type Parameters

T
The type of the x values.

Return Value

Double
The fitted coefficients of the linear combination.
See Also