Click or drag to resize

FitLinearCombination(Double, Double, FuncDouble, Double) Method

Least-Squares fitting the points (x,y) to an arbitrary linear combination y : x -> p0*f0(x) + p1*f1(x) + ... + pk*fk(x), 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[] LinearCombination(
	double[] x,
	double[] y,
	params Func<double, double>[] functions
)

Parameters

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

Return Value

Double
The fitted coefficients of the linear combination.
See Also