Archived

This topic is now archived and is closed to further replies.

FearedPixel

Line that most closely passes through a set of points?

Recommended Posts

I have a set of points in the order that they should form the line, but they do not perfectly lie on the line. How would I get the equation of the line that most closely lies on the points? Help would be much appreciated. Edit: Actually all I need is the gradient. What im gonna do now is get the gradient of each segment between the points, and average their gradient. If anyone knows of a better solution, please say. [edited by - FearedPixel on November 16, 2003 1:00:26 PM]

Share this post


Link to post
Share on other sites