Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fastest way to fit a parabola to set of points?

Given a set of points, what's the fastest way to fit a parabola to them? Is it doing the least squares calculation or is there an iterative way?

Thanks

Edit: I think gradient descent is the way to go. The least squares calculation would have been a little bit more taxing (having to do qr decomposition or something to keep things stable).

like image 650
victor Avatar asked Oct 28 '10 01:10

victor


1 Answers

If the points have no error associated, you may interpolate by three points. Otherwise least squares or any equivalent formulation is the way to go.

like image 170
Dr. belisarius Avatar answered Oct 08 '22 19:10

Dr. belisarius