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

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

Syntax

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

Field Value

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

Remarks

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