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

Home » Public Forums » archive » Re: [Q]IDL: Using WHERE.
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: [Q]IDL: Using WHERE. [message #5973 is a reply to message #5962] Wed, 20 March 1996 00:00 Go to previous messageGo to previous message
Mirko Vukovic is currently offline  Mirko Vukovic
Messages: 124
Registered: January 1996
Senior Member
Mark Rivers wrote:

> I think this will cut the computation time:
>
> t = (array gt 20) ; t(i) will be 0 or 1 depending upon comparison
> b = where(t) ; b is the indices of the > 20 elements
> c = where(t-1) ; c is the indices of the <= 20 elements
>
> This method avoids doing the floating point comparison twice.
> Yesss!! good thinking and thanks a lot. I was wondering how one might
be able to accomplish this
--
Mirko Vukovic, Ph.D. mirko.vukovic@grc.varian.com
Varian Research Center Phone: (415) 424-4969
3075 Hansen Way, M/S K-109 Fax: (415) 424-6988
Palo Alto, CA 94304-1025
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Line index
Next Topic: [Q]: How to calculate distance from GPS measurements

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

Current Time: Fri Oct 10 15:53:23 PDT 2025

Total time taken to generate the page: 1.52330 seconds