FitLinearGenericFuncT(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 a function y' for the best fitting combination.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static Func<T, double> LinearGenericFunc<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
FuncT,
DoubleA function representing the fitted linear combination.
See Also