You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Fitting » AVL.FitLineToPoints_LTE
Approximates points with a line using Least Trimmed Error algorithm.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitLineToPoints_LTE ( IList<AvlNet.Point2D> inPoints, int inSeedSubsetSize, out AvlNet.Line2D outLine )
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 line. Default value: 3. | |
outLine | AvlNet.Line2D | Fitted line. |
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>, Nullable<Range>, Int32, Nullable<Int32>, Line2D)
- FitLineToPoints_LTE(IList<Point2D>, Nullable<Range>, Int32, Nullable<Int32>, Line2D, NullableRef<List<Point2D>>, NullableValue<Single>)
- 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)