Does Fit.Line use least squares

432 Views Asked by At

The method Fit.Line - what algorithm does it use to determine the parameters? Hopefully least squares.

1

There are 1 best solutions below

0
Tim Roberts On BEST ANSWER

Check the documentation. https://numerics.mathdotnet.com/api/MathNet.Numerics/Fit.htm#Line

"Least-Squares fitting the points (x,y) to a line y : x -> a+b*x, returning its best fitting parameters as [a, b] array, where a is the intercept and b the slope."