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

Invoke.FitLineToPoints_LTE

Approximates points with a line using Least Trimmed Error algorithm.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void FitLineToPoints_LTE
(
	List<Avl.Point2D> inPoints,
	Optional<Avl.Range> inRange,
	int inSeedSubsetSize,
	Optional<int> inEvalSubsetSize,
	out Avl.Line2D outLine,
	Optional<List<Avl.Point2D>> outLTInliers,
	Optional<float> outLTError,
	Diagnostic<int> diagIterationCount
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.List<Avl.Point2D>Input points.
inRangeAtl.Optional<Avl.Range>Determines which array points take part in fitting process. Default value: atl::NIL.
inSeedSubsetSizeint<2, 10>3Number of points in one combination for getting a sample line. Default value: 3.
inEvalSubsetSizeAtl.Optional<int><3, INF>Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used. Default value: atl::NIL.
outLineAvl.Line2DFitted line.
outLTInliersAtl.Optional<System.Collections.Generic.List<Avl.Point2D>>Inlying points of the best LTE line.
outLTErrorAtl.Optional<float>The Least Trimmed Error.
diagIterationCountAvl.Diagnostic<int>Number of combinations considered.

See also