comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: poly_fit for less number of points
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: poly_fit for less number of points [message #84215 is a reply to message #84214] Sun, 05 May 2013 12:59 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Saturday, May 4, 2013 6:44:28 AM UTC-4, sid wrote:
> Hello everyone,
>
> I have only 6 x values and y values, for example
>
> my x = [3932.9321,3933.0452,3933.1162,3933.2514,3933.3517,3933.4271 ]
>
> y = [0.090313701,0.084354165,0.080794218,0.075102273,0.074025219 ,0.082037902]
>
> I have to fit this with polynomial, I tried svdfit and poly_fit. But are not giving good fit. Please suggest me a way to fit these data points.

This fit,
res = poly_fit(x-mean(x), y, 2)
gives a smooth fit.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: idlwave online help error
Next Topic: the problem for GPULIB+IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:04:12 PDT 2025

Total time taken to generate the page: 1.43804 seconds