You are here: Start » AVL.NET » AVL.FitLineToPoints
Approximates points with a line using the Least Squares method.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void FitLineToPoints ( IList<AvlNet.Point2D> inPoints, out AvlNet.Line2D outLine, out float outError )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoints | System.Collections.Generic.IList<AvlNet.Point2D> | ||||
outLine | AvlNet.Line2D | ||||
outError | float |
Examples
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty point array in FitLineToPoints. |