You are here: Start » AVL.NET » Invoke.FitLineToPoints_M
Approximates points with a line using selected M-estimator for outlier suppression.
| Namespace: | Avl | 
|---|---|
| Assembly: | AvlNet.dll | 
Syntax
C++
C#
public static void FitLineToPoints_M ( List<Avl.Point2D> inPoints, Optional<Avl.Range> inRange, Avl.MEstimator inOutlierSuppression, float inClippingFactor, int inIterationCount, Optional<Avl.Line2D> inInitialLine, out Avl.Line2D outLine, Optional<List<Avl.Point2D>> outInliers )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]()  | inPoints | System.Collections.Generic.List<Avl.Point2D> | |||
![]()  | inRange | Atl.Optional<Avl.Range> | Determines which array points take part in fitting process. Default value: atl::NIL. | ||
![]()  | inOutlierSuppression | Avl.MEstimator | |||
![]()  | inClippingFactor | float | <0.675f, 6.0f> | 2.5f | Multitude of standard deviation within which points are considered inliers. Default value: 2.5f. | 
![]()  | inIterationCount | int | <0, INF> | 5 | Number of iterations of outlier suppressing algorithm. Default value: 5. | 
![]()  | inInitialLine | Atl.Optional<Avl.Line2D> | Initial approximation (if available). Default value: atl::NIL. | ||
![]()  | outLine | Avl.Line2D | |||
![]()  | outInliers | Atl.Optional<System.Collections.Generic.List<Avl.Point2D>> | Points matching the computed line. | 


