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 #84726 is a reply to message #84225] Sun, 05 May 2013 12:55 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 10:02:57 AM UTC-4, sid wrote:
> On Saturday, May 4, 2013 4:14:28 PM UTC+5:30, 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.
>
>>
>
>>
>
>>
>
>> thanking you in advance
>
>>
>
>> sid
>
>
>
> Thank you very much sir it works. But can you please suggest me is there any other fit available to fit this kind of dataset. Because I want to get a smoothed fit.
>

This fit,
res = poly_fit(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: Fri Oct 10 14:47:39 PDT 2025

Total time taken to generate the page: 0.56593 seconds