Gets the 2d linear least squares fitting of a point set.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: (


public Line LeastSquaresLine { get; }
Visual Basic (Declaration)
Public ReadOnly Property LeastSquaresLine As Line
Visual C++
property Line^ LeastSquaresLine {
	Line^ get ();

Field Value

The 2d least squares line through the points of the point set.


The 2d least squares line is the line in the x-y plane that minimizes the sum of the squared vertical distances (in y-direction) of the points to the line.

The z-coordinates of the points do not affect the fitting.

See Also