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

Home » Public Forums » archive » Re: Histogram and bin sizes
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: Histogram and bin sizes [message #58779 is a reply to message #58773] Thu, 21 February 2008 06:05 Go to previous messageGo to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Feb 20, 2:43 pm, pgri...@gmail.com wrote:
> jeffnettles4...@gmail.com wrote:
>> I've always wondered why you have to use a constant bin size with
>> HISTOGRAM().
>> To quote J.D.'s famous tutorial: "a histogram
>> represents nothing more than a fancy way to count." Doesn't an
>> imposed constant bin size imply that this is the only way it's ok to
>> count? I can think of several reasons i wouldn't want to do this - I
>> used logarithmic bin sizes in my dissertation, for example (now i'm
>> hoping someone isn't going to answer this post saying i screwed up in
>> my dissertation :-) ).
>
> I use logarithmic bins myself quite often, and the fact that a
> logarithmic bin
> size is the same as a constant bin size in log space, makes it is easy
> to use histogram to get that. Less regulars binning don't work with
> histogram, but nobody stops you from writing your own version to work
> with them (it will not be as fast as histogram though).
>
> Ciao,
> Paolo
>
>> And besides, Excel lets you use arbitrary bin
>> sizes....and if Excel lets you do it, it has to be ok, right???? ;-)
>
>> Jeff

You can always do whatever binning you want, you just have to
transform your data to the new space and then bin it constantly. Why
doesn't histogram let you use aribtrary binsizes? Not being an IDL
developer I don't know for sure, but I would guess it's a speed
issue. The simpler a program is the faster it is. I use histogram
all the time because it's one of the speedier programs in IDL. It
would make me very sad if in order to make histogram more flexible, it
also became much slower, especially since by transforming my data set
I can use aribtrary bin sizes for histogram.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL 6.3 read_binary ??
Next Topic: Re: widget draw background color

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

Current Time: Sun Oct 12 13:01:31 PDT 2025

Total time taken to generate the page: 1.36160 seconds