You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » FIL.FitLineToPoints_LTE
Approximates points with a line using Least Trimmed Error algorithm.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void FitLineToPoints_LTE ( IList<FilNet.Point2D> inPoints, FilNet.Range? inRange, int inSeedSubsetSize, int? inEvalSubsetSize, out FilNet.Line2D outLine, NullableRef<List<FilNet.Point2D>> outLTInliers, NullableValue<float> outLTError )
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. | ||
![]() | inSeedSubsetSize | int | <2, 10> | 3 | Number of points in one combination for getting a sample line. Default value: 3. |
![]() | inEvalSubsetSize | int? | <3, INF> | Number of closest points used for evaluation of a sample line, or Auto if seed points are to be used. Default value: ftl::NIL. | |
![]() | outLine | FilNet.Line2D | Fitted line. | ||
![]() | outLTInliers | FilNet.NullableRef<System.Collections.Generic.List<FilNet.Point2D>> | Inlying points of the best LTE line. Can be null to skip this parameter calculation. | ||
![]() | outLTError | FilNet.NullableValue<float> | The Least Trimmed Error. Can be null to skip this parameter calculation. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array of points in FitLineToPoints_LTE. |
DomainError | Range exceeds the input point array in FitLineToPoints_LTE. |
Function Overrides
- FitLineToPoints_LTE(IList<Point2D>, Int32, Line2D)
- FitLineToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Line2D)
- FitLineToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Line2D, IList<Point2D>, Single, Int32)
- FitLineToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Line2D, NullableRef<List<Point2D>>, NullableValue<Single>, Int32)