FitLinearGenericT(T, Double, DirectRegressionMethod, FuncT, Double) Method |
Least-Squares fitting the points (T,y) = (T,y) to an arbitrary linear combination y : X -> p0*f0(T) + p1*f1(T) + ... + pk*fk(T),
returning its best fitting parameters as [p0, p1, p2, ..., pk] array.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double[] LinearGeneric<T>(
T[] x,
double[] y,
DirectRegressionMethod method,
params Func<T, double>[] functions
)
Parameters
- x T
- 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 FuncT, Double
- The basis functions of the linear combination.
Type Parameters
- T
- The type of the x values.
Return Value
DoubleThe fitted coefficients of the linear combination.
See Also