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

Home » Public Forums » archive » greater than X and less than Y
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: greater than X and less than Y [message #36308 is a reply to message #36223] Thu, 28 August 2003 22:07 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
bradbury@geo.umass.edu (James Bradbury) writes:
...
> ; returns vector with ones in place of values in
> ; top 66 percentile of "data"
> high66=data gt top66
>
> ; calculates "data's" 33rd percentile
> bot33=new_data(0.33*N)
>
> ; returns vector with ones in place of values in
> ; bottom 33 percentile of "data"
> low33=data lt bot33
>
> Using a similar method (or not) how would I create
> a "mid33," and thus gain access to the data in the range
> between the bottom 33rd and the upper 66th percentiles.

The problem is easily solved when you use the AND operator as well.

mid33 = (data GE bot33) AND (data LE top33)

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: working with IDLtoAVI.dlm
Next Topic: map_patch and triangulating satellite images

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

Current Time: Sun Oct 12 11:21:53 PDT 2025

Total time taken to generate the page: 1.51987 seconds