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

Home » Public Forums » archive » Re: Correlation on log-log? -or- Easy way of removing 0's?
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: Correlation on log-log? -or- Easy way of removing 0's? [message #20253 is a reply to message #20251] Fri, 26 May 2000 00:00 Go to previous message
Alex Schuster is currently offline  Alex Schuster
Messages: 124
Registered: February 1997
Senior Member
Simon de Vet wrote:

> I think that this may be because some of the values are 0, and this
> makes my computer explode (metaphorically speaking, of course). Is there
> an easy way of fixing this problem without loops? Could there be another
> cause of my problem?

To use correlate() with all positive values only, you can do something
like this:

index = where( array1 gt 0.0 and array2 gt 0.0 )
result = correlate( alog( array1[index] ), alog( array2[index] ) )

Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: ICUR Library
Next Topic: Correlation on log-log? -or- Easy way of removing 0's?

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

Current Time: Mon Dec 01 16:14:42 PST 2025

Total time taken to generate the page: 0.18581 seconds