You are here: Start » FIL.NET » FIL.FitLineToPoints_TheilSen
Approximates points with a line using TheilSen algorithm, optionally with Siegel's improvement.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void FitLineToPoints_TheilSen ( IList<FilNet.Point2D> inPoints, FilNet.Range? inRange, FilNet.TheilSenVariant inVariant, out FilNet.Line2D outLine )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point2D> | Input points. | ||
![]() | inRange | FilNet.Range? | Determines which array points take part in fitting process. Default value: ftl::NIL. | ||
![]() | inVariant | FilNet.TheilSenVariant | Switches between Theil-Sen and Siegel methods. | ||
![]() | outLine | FilNet.Line2D | Fitted line. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array of points in FitLineToPoints_TheilSen. |
DomainError | Range exceeds the input point array in FitLineToPoints_TheilSen. |