SimpleRegressionFitThroughOrigin(Double, Double) Method |
Least-Squares fitting the points (x,y) to a line y : x -> b*x,
returning its best fitting parameter b,
where the intercept is zero and b the slope.
Namespace: Altaxo.Calc.LinearRegressionAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double FitThroughOrigin(
double[] x,
double[] y
)
Parameters
- x Double
- The predictor values.
- y Double
- The response values.
Return Value
DoubleThe slope of the fitted line through the origin.
See Also