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 #84226 is a reply to message #84225] Sat, 04 May 2013 05:00 Go to previous messageGo to previous message
Heinz Stege is currently offline  Heinz Stege
Messages: 189
Registered: January 2003
Senior Member
On Sat, 4 May 2013 03:44:28 -0700 (PDT), 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

You could try the following: Calculate the average xc of the x values.
Then transform the x values to xt=x-xc and do the fitting for the
tranformed values.

Heinz
[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: Wed Oct 08 18:22:27 PDT 2025

Total time taken to generate the page: 0.00175 seconds