Click or drag to resize

FitLinearMultiDim(Double, Double, FuncDouble, Double) Method

Least-Squares fitting the points (X,y) = ((x0,x1,..,xk),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[] LinearMultiDim(
	double[][] x,
	double[] y,
	params Func<double[], double>[] functions
)

Parameters

x  Double
The predictor vectors.
y  Double
The response values.
functions  FuncDouble, Double
The basis functions of the linear combination.

Return Value

Double
The fitted coefficients of the linear combination.
See Also