FitLinearCombinationFunc(Double, Double, FuncDouble, Double) Method |
Least-Squares fitting the points (x,y) to an arbitrary linear combination y : x -> p0*f0(x) + p1*f1(x) + ... + pk*fk(x),
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<double, double> LinearCombinationFunc(
double[] x,
double[] y,
params Func<double, double>[] functions
)
Parameters
- x Double
- The x values of the sample points.
- y Double
- The y values of the sample points.
- functions FuncDouble, Double
- The basis functions of the linear combination.
Return Value
FuncDouble,
DoubleA function representing the fitted linear combination.
See Also