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

Invoke.FitSegmentToPoints_TheilSen

Approximates points with a segment using TheilSen algorithm, optionally with Siegel's improvement.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void FitSegmentToPoints_TheilSen
(
	List<Avl.Point2D> inPoints,
	Optional<Avl.Range> inRange,
	Avl.TheilSenVariant inVariant,
	Optional<int> inSampleLimit,
	Optional<float> inOutlierRatio,
	out Avl.Segment2D outSegment,
	Diagnostic<List<float>> diagOrientations
)

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.
inVariantAvl.TheilSenVariantSwitches between Theil-Sen and Siegel methods.
inSampleLimitAtl.Optional<int><5, INF>How many pairs of points are used to estimate orientation. Default value: atl::NIL.
inOutlierRatioAtl.Optional<float><0.0f, 0.99f>
outSegmentAvl.Segment2DFitted segment.
diagOrientationsAvl.Diagnostic<System.Collections.Generic.List<float>>Sample orientations used to determine the output line orientation.

See also