Gravity Engine 2 4.0
|
Routines to do a linear least-squares fit. More...
Classes | |
class | LSPoint |
Static Public Member Functions | |
static double | ErrorSquared (List< LSPoint > points, double m, double b) |
static double | FindLinearLeastSquaresFit (List< LSPoint > points, out double m, out double b) |
Routines to do a linear least-squares fit.
Code from: http://csharphelper.com/blog/2014/10/find-a-linear-least-squares-fit-for-a-set-of-points-in-c/