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

Home » Public Forums » archive » Re: Last bin of a histogram ?
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: Last bin of a histogram ? [message #83885] Wed, 10 April 2013 11:20 Go to previous message
John Correira is currently offline  John Correira
Messages: 25
Registered: August 2011
Junior Member
On 04/10/2013 02:08 PM, David Fanning wrote:
> John Correira writes:
>
>> I thought that defined the start of the last bin. If you look at the
>> output locations, the last one is 99.5, which, again according to the
>> help, defines the starting location for each bin.
>
> Well, OK, that is the starting location of the last bin, then. But, it
> will be empty, since you told the function to ignore anything that might
> go into it.
>
> Cheers,
>
> David
>

I see.

So the following two calls will return the exact same set of bins, but
different histograms:

h1 = histogram(data,min=0.,max=99.5,binsize=.5,locations=l1)
h2 = histogram(data,min=0.,nbins=200,binsize=.5,locations=l2)

print, array_equal(l1,l2)
print, array_equal(h1,h2)


Brilliant.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Are the JHU/APL/S1R libraries still available?
Next Topic: Coyote's Guide to Traditional IDL Graphics Almost Gone

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

Current Time: Wed Oct 08 17:32:14 PDT 2025

Total time taken to generate the page: 0.00436 seconds