linear-least-squares

Finds the best curve to fit a set of points through minimizing the sum of the squares of the offset of each point from the curve.

Browse on unpkg