You are here: Start » AVL.NET » Invoke.FitLineToPoints_TheilSen
Approximates points with a line using TheilSen algorithm, optionally with Siegel's improvement.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void FitLineToPoints_TheilSen ( List<Avl.Point2D> inPoints, Optional<Avl.Range> inRange, Avl.TheilSenVariant inVariant, Optional<int> inSampleLimit, Optional<float> inOutlierRatio, out Avl.Line2D outLine, Diagnostic<List<float>> diagOrientations )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.List<Avl.Point2D> | Input points. | ||
![]() | inRange | Atl.Optional<Avl.Range> | Determines which array points take part in fitting process. Default value: atl::NIL. | ||
![]() | inVariant | Avl.TheilSenVariant | Switches between Theil-Sen and Siegel methods. | ||
![]() | inSampleLimit | Atl.Optional<int> | <5, INF> | How many pairs of points are used to estimate orientation. Default value: atl::NIL. | |
![]() | inOutlierRatio | Atl.Optional<float> | <0.0f, 0.99f> | ||
![]() | outLine | Avl.Line2D | Fitted line. | ||
![]() | diagOrientations | Avl.Diagnostic<System.Collections.Generic.List<float>> | Sample orientations used to determine the output line orientation. |