You are here: Start » AVL.NET » 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 ( AvlNet.Point2D[] inPoints, int inSeedSubsetSize, int? inEvalSubsetSize, out AvlNet.Line2D outLine, out int diagIterationCount )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPoints | AvlNet.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: atl::NIL, or null. | |
![]() | outLine | AvlNet.Line2D | Fitted line. | ||
![]() | diagIterationCount | int | Number of combinations considered. |
Errors
Error type | Description |
---|---|
DomainError | Empty array of points in FitLineToPoints_LTE. |
See also
- FitLineToPoints_LTE(AvlNet.Point2D[], int, AvlNet.Line2D)
- FitLineToPoints_LTE(AvlNet.Point2D[], int, AvlNet.Line2D, int)
- FitLineToPoints_LTE(AvlNet.Point2D[], int, int?, AvlNet.Line2D)
- FitLineToPoints_LTE(AvlNet.Point2D[], int, AvlNet.Line2D, AvlNet.Point2D[], float)
- FitLineToPoints_LTE(AvlNet.Point2D[], int, AvlNet.Line2D, AvlNet.Point2D[], float, int)
- FitLineToPoints_LTE(AvlNet.Point2D[], int, int?, AvlNet.Line2D, AvlNet.Point2D[], float)
- FitLineToPoints_LTE(AvlNet.Point2D[], int, int?, AvlNet.Line2D, AvlNet.Point2D[], float, int)
- Class Reference
- AVL Class