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

AVL.FitLineToPoints_LTE Method

Approximates points with a line using Least Trimmed Error algorithm.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void FitLineToPoints_LTE(
	AvlNet.Point2D[] inPoints,
	int inSeedSubsetSize,
	int? inEvalSubsetSize,
	out AvlNet.Line2D outLine,
	out AvlNet.Point2D[] outLTInliers,
	out float outLTError,
	out int diagIterationCount
)

Parameters

Name Type Range Default Description
inPointsAvlNet.Point2DInput points.
inSeedSubsetSizeint<2, 10>3Number of points in one combination for getting a sample line. Default value: 3.
inEvalSubsetSizeint?<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, or null.
outLineAvlNet.Line2DFitted line.
outLTInliersAvlNet.Point2DInlying points of the best LTE line
outLTErrorfloatThe Least Trimmed Error
diagIterationCountintNumber of combinations considered.

Errors

Error type Description
DomainError Empty array of points in FitLineToPoints_LTE.

See also