Line2d.FindLinearLeastSquaresFitOrigo Method

Computes a least squares fit line, starting at x0 and ending at x1, and passing throught 0,0. The error minimized is the y-diff to line only (not real distance to line).
Public Shared Function FindLinearLeastSquaresFitOrigo( _ 
ByVal points As List(Of Point2d), _ 
ByVal x0 As Double, _ 
ByVal x1 As Double
) As Line2d
This language is not supported or no code example is available.
public static Line2d FindLinearLeastSquaresFitOrigo( 
List<Point2d> points
double x0
double x1 
)
This language is not supported or no code example is available.
public:  
static Line2d^ FindLinearLeastSquaresFitOrigo( 
List<Point2d^>^ points
double x0
double x1 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Parameters

points
List<Point2d>

x0
double

x1
double

Return Value

Line2d

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition