You are here: Start » AVL.NET » Invoke.FitLineToPoints

Invoke.FitLineToPoints

Approximates points with a line using the Least Squares method.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void FitLineToPoints
(
	List<Avl.Point2D> inPoints,
	Optional<Avl.Range> inRange,
	out Avl.Line2D outLine,
	Optional<float> outError
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.List<Avl.Point2D>
inRangeAtl.Optional<Avl.Range>Determines which array points take part in fitting process. Default value: atl::NIL.
outLineAvl.Line2D
outErrorAtl.Optional<float>Sum of the point distances from the output line.

See also