/linfit

Least squares linear fit for numpy library of Python

Primary LanguageJupyter NotebookGNU Lesser General Public License v2.1LGPL-2.1

Least squares fit to straight line

Fit a straight line

f(x) = a + bx 

to (x, y) data points. Returns coefficients a and b that minimize the squared error.

Click here for linfit docstring