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.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic 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
DoubleThe fitted coefficients of the linear surface.
See Also