Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 299 Bytes

File metadata and controls

11 lines (8 loc) · 299 Bytes

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