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

Invoke.FitLineToPoints_M

Approximates points with a line using selected M-estimator for outlier suppression.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void FitLineToPoints_M
(
	List<Avl.Point2D> inPoints,
	Optional<Avl.Range> inRange,
	Avl.MEstimator inOutlierSuppression,
	float inClippingFactor,
	int inIterationCount,
	Optional<Avl.Line2D> inInitialLine,
	out Avl.Line2D outLine,
	Optional<List<Avl.Point2D>> outInliers
)

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.
inOutlierSuppressionAvl.MEstimator
inClippingFactorfloat<0.675f, 6.0f>2.5fMultitude of standard deviation within which points are considered inliers. Default value: 2.5f.
inIterationCountint<0, INF>5Number of iterations of outlier suppressing algorithm. Default value: 5.
inInitialLineAtl.Optional<Avl.Line2D>Initial approximation (if available). Default value: atl::NIL.
outLineAvl.Line2D
outInliersAtl.Optional<System.Collections.Generic.List<Avl.Point2D>>Points matching the computed line.

See also