Click or drag to resize

FitMultiDim Method

Least-Squares fitting the points (X,y) = ((x0,x1,..,xk),y) to a linear surface y : X -> p0*x0 + p1*x1 + ... + pk*xk, returning its best fitting parameters as [p0, p1, p2, ..., pk] array. If an intercept is added, its coefficient will be prepended to the resulting parameters.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static double[] MultiDim(
	double[][] x,
	double[] y,
	bool intercept = false,
	DirectRegressionMethod method = DirectRegressionMethod.NormalEquations
)

Parameters

x  Double
The predictor vectors.
y  Double
The response values.
intercept  Boolean  (Optional)
Whether to include an intercept term.
method  DirectRegressionMethod  (Optional)
The direct regression method to use.

Return Value

Double
The fitted coefficients of the linear surface.
See Also