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

Home » Public Forums » archive » Speaking of curve fitting...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Speaking of curve fitting... [message #58472] Thu, 31 January 2008 07:50
lasse is currently offline  lasse
Messages: 48
Registered: February 2007
Member
... run the following code, spot the difference and explain, s'il vous
plait.

nn = 1000
xx1 = dindgen(nn)
xx2 = timegen(nn, start=julday(5,25,1980,11,23))

yy1 = sin(2.*2.*!pi*xx1/(nn-1.))

d = poly_fit(xx1, yy1, 6, yfit=yfit1, /double)
d = poly_fit(xx2, yy1, 6, yfit=yfit2, /double)

!p.multi = [0,1,2]
plot, xx1, yy1, /xstyle
oplot, xx1, yfit1, linestyle=1
plot, xx2, yy1,/xstyle
oplot, xx2, yfit2, linestyle=1

end

I had a quick look at POLY_FIT.PRO but I can spot nothing which could
explain the above behaviour. I run 32bit IDL 6.4 on some Linux.

Cheers
Lasse Clausen
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to catch any IDL errors?
Next Topic: Re: Speaking of curve fitting...

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

Current Time: Wed Oct 08 19:52:59 PDT 2025

Total time taken to generate the page: 0.00603 seconds