Click or drag to resize

FitLinearCombinationFunc(Double, Double, DirectRegressionMethod, 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 a function y' for the best fitting combination.

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

Parameters

x  Double
The x values of the sample points.
y  Double
The y values of the sample points.
method  DirectRegressionMethod
The direct regression method to use.
functions  FuncDouble, Double
The basis functions of the linear combination.

Return Value

FuncDouble, Double
A function representing the fitted linear combination.
See Also