You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » AVL.FitSegmentToPoints_LTE
Approximates points with a segment using Least Trimmed Error algorithm.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitSegmentToPoints_LTE ( IList<AvlNet.Point2D> inPoints, int inSeedSubsetSize, out AvlNet.Segment2D outSegment )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | Input points. | |||
inSeedSubsetSize | int | <2, 10> | 3 | Number of points in one combination for getting a sample segment. Default value: 3. | |
outSegment | AvlNet.Segment2D | Fitted segment. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array of points in FitSegmentToPoints_LTE. |
DomainError | Range exceeds the input point array in FitSegmentToPoints_LTE. |
Function Overrides
- FitSegmentToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Segment2D)
- FitSegmentToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Segment2D, NullableRef<List<Point2D>>, NullableValue<Single>)
- FitSegmentToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Segment2D, IList<Point2D>, Single, Int32)
- FitSegmentToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Segment2D, NullableRef<List<Point2D>>, NullableValue<Single>, Int32)