-2

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

David Thielen
  • 28,723
  • 34
  • 119
  • 193

1 Answers1

2

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."

Tim Roberts
  • 48,973
  • 4
  • 21
  • 30