I'm familiar with using linear least squares to find the best fit line of a set of points. I have a slightly different situation where I have spans as well as points.
Example:
I'm trying to find the linear best fit where the line crosses through spans as much as possible. Maybe I'm not using the right terms but searching turned up nothing. Can someone point me in a direction of how I could solve this?
(I hope this question is clear enough)
