Click or drag to resize

FitLineThroughOrigin Method

Least-Squares fitting the points (x,y) to a line through origin y : x -> b*x, returning its best fitting parameter b, where the intercept is zero and b the slope.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static double LineThroughOrigin(
	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

Double
The slope of the fitted line through the origin.
See Also