You are here: Start » AVL.NET » AVS.FitSegmentToPoints_TheilSen Method

AVS.FitSegmentToPoints_TheilSen Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void FitSegmentToPoints_TheilSen
(
	IList<AvlNet.Point2D> inPoints,
	AvlNet.Range? inRange,
	AvlNet.TheilSenVariant inVariant,
	int? inSampleLimit,
	float? inOutlierRatio,
	out AvlNet.Segment2D outSegment,
	IList<float> diagOrientations
)

Parameters

Name Type Range Default Description
inPointsSystem.Collections.Generic.IList<AvlNet.Point2D>Input points.
inRangeAvlNet.Range?Determines which array points take part in fitting process. Default value: atl::NIL.
inVariantAvlNet.TheilSenVariantSwitches between Theil-Sen and Siegel methods.
inSampleLimitint?<5, INF>How many pairs of points are used to estimate orientation. Default value: atl::NIL.
inOutlierRatiofloat?<0.0f, 0.99f>
outSegmentAvlNet.Segment2DFitted segment.
diagOrientationsSystem.Collections.Generic.IList<float>Sample orientations used to determine the output line orientation.

Function Overrides

See also