You are here: Start » FIL.NET » 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, int inSeedSubsetSize, int? inEvalSubsetSize, out FilNet.Line2D outLine, IList<FilNet.Point2D> outLTInliers, out float outLTError )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | System.Collections.Generic.IList<FilNet.Point2D> | Input points. | ||
![]() | 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 | System.Collections.Generic.IList<FilNet.Point2D> | Inlying points of the best LTE line. | ||
![]() | outLTError | float | The Least Trimmed Error. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array of points in FitLineToPoints_LTE. |
Function Overrides
- FitLineToPoints_LTE(IList<Point2D>, Int32, Line2D)
- FitLineToPoints_LTE(IList<Point2D>, Int32, Line2D, Int32)
- FitLineToPoints_LTE(IList<Point2D>, Int32, Nullable<Int32>, Line2D)
- FitLineToPoints_LTE(IList<Point2D>, Int32, Line2D, IList<Point2D>, Single)
- FitLineToPoints_LTE(IList<Point2D>, Int32, Nullable<Int32>, Line2D, Int32)
- FitLineToPoints_LTE(IList<Point2D>, Int32, Line2D, IList<Point2D>, Single, Int32)
- FitLineToPoints_LTE(IList<Point2D>, Int32, Nullable<Int32>, Line2D, IList<Point2D>, Single, Int32)