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

Home » Public Forums » archive » where function not finding value
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: where function not finding value [message #90579 is a reply to message #90575] Wed, 11 March 2015 09:24 Go to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Yes, this is all about floating point.

But, there's another issue that's worth noting: your test where statement is incorrect.

Histograms are inclusive on the low end.

Let's remove the floating point business, and look at an example:

x = [0, 3, 5, 10, 11, 20]
h=histogram(x, BINSIZE=5, MIN=0)
print, h
.... 2 1 2 0 1

We can use reverse indices and locations to see that, for example, 10 and 11 fall in the 10-15 bin. So, your where statement should look like what Craig has.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: License Manager help
Next Topic: Map_proj_forward.pro

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

Current Time: Sat Oct 11 08:26:17 PDT 2025

Total time taken to generate the page: 2.47926 seconds