FitLineThroughOriginFunc Method |
Least-Squares fitting the points (x,y) to a line through origin y : x -> b*x,
returning a function y' for the best fitting line.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static Func<double, double> LineThroughOriginFunc(
double[] x,
double[] y
)
Parameters
- x Double
- The x values of the sample points.
- y Double
- The y values of the sample points.
Return Value
FuncDouble,
DoubleA function representing the fitted line through the origin.
See Also