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

Home » Public Forums » archive » Correlate function (bug?)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Correlate function (bug?) [message #11103] Fri, 13 March 1998 00:00 Go to previous message
Theo Brauers is currently offline  Theo Brauers
Messages: 58
Registered: November 1997
Member
Hi

I was facing a problem with the correlate function
which is demonstrated by the following IDL procedure:

pro testc
x=[1.D-5, 1.D-6, 0.0]
y=[1.D-5, 1.1D-6, 0.0]
f=[1.D0, 1.D1, 1.D2, 1.D3, 1.D4, 1.D5, 1.D6]
for i=0,6 do begin
print, i, correlate(x,y, /double) $
, correlate(x,y*f[i], /double) $
, correlate(x*f[i],y, /double) $
, correlate(x*f[i],y*f[i], /double)
endfor
END

giving the following result:

0 1.#QNAN00 1.#QNAN00 1.#QNAN00 1.#QNAN00
1 1.#QNAN00 1.#QNAN00 1.#QNAN00 1.#QNAN00
2 1.#QNAN00 1.#QNAN00 1.#QNAN00 1.#QNAN00
3 1.#QNAN00 1.#QNAN00 1.#QNAN00 0.99995432
4 1.#QNAN00 1.#QNAN00 1.#QNAN00 0.99995432
5 1.#QNAN00 0.99995432 0.99995432 0.99995432
6 1.#QNAN00 0.99995432 0.99995432 0.99995432

In my opinion there is no reason for an underflow or whatever causes
correlate to return NAN.

Best Theo


----------------------------------------------
Dr. Theo Brauers
Institut fuer Atmosphaerische Chemie (ICG-3)
Forschungszentrum Juelich
52425 JUELICH, Germany
Tel. +49-2461-61-6646 Fax. +49-2461-61-5346
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL installation problem
Next Topic: Re: troubles with findfile (now with attachment)

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

Current Time: Fri Oct 10 20:59:07 PDT 2025

Total time taken to generate the page: 0.72258 seconds