Class LeastSquaresLinearFit
Fit a line through a set of 2-dimensional points.
Inheritance
System.Object
LeastSquaresLinearFit
Namespace: Paramdigma.Core.LinearAlgebra
Assembly: Paramdigma.Core.dll
Syntax
public static class LeastSquaresLinearFit : object
Methods
| Improve this Doc View SourceFindLinearLeastSquaresFit(List<Point2d>, out Double, out Double)
Find the least squares best fitting line to the given points.
Declaration
public static double FindLinearLeastSquaresFit(List<Point2d> points, out double m, out double b)
Parameters
Type | Name | Description |
---|---|---|
List<Point2d> | points | The points to fit the line through. |
System.Double | m | Height. |
System.Double | b | Slope. |
Returns
Type | Description |
---|---|
System.Double |