Least-Squares fitting the points (X,y) = ((x0,x1,..,xk),y) to a linear surface y : X -> p0*x0 + p1*x1 + ... + pk*xk,
returning a function y' for the best fitting combination.
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 Func<double[], double> MultiDimFunc(
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
FuncDouble,
DoubleA function representing the fitted linear surface.
See Also