I have observed that curve fitting through rpf method is very dependent on the range of data being taken
It fits differently for different range of same data.
I am attaching three pics where rpf is fit over 3 different range of a particular data after taking fft. But you can observer it fits differently in all the cases.
So how to chose the best range for optimum fit.
I have also attached a pic where I generated the frequency, damping and K by varying the polynomial degree N.
You can find that the constants also vary markedly. So how to get the right fit and right parameters for any function.
https://drive.google.com/file/d/0B7IJ0Q4X7ZsadUVlYTJQcjNGNlE/view?usp=sharing
https://drive.google.com/open?id=0B7IJ0Q4X7ZsaeFVWaVFzNVM1UlU&authuser=0
https://drive.google.com/open?id=0B7IJ0Q4X7ZsaMVJRYjhLT2ktRG8&authuser=0
https://drive.google.com/open?id=0B7IJ0Q4X7ZsaRWZCRjdidlhNTms&authuser=0