Re: histogram, how to trasfer from linear bins to logarithmic bin? [message #68176 is a reply to message #68155] |
Tue, 29 September 2009 14:51   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
JDS writes:
> This would better be described as a way to create a histogram using
> any arbitrary bins of your own devising; pretty cool indeed, since you
> can design those bins in whatever way is useful. It does require you
> to sort your array beforehand, and so in this case would be less
> efficient than just taking the histogram of the log of your data.
Actually, as I realized a couple of weeks ago
in Australia when I was teaching this example,
the array does NOT need to be sorted in this
example. The cutoff vector needs to be monotonically
increasing, but the array you are partitioning does
not need to be.
I've been using this method (without sorting) to
process quite a lot of data recently, and I am
*extremely* pleased with how darn fast it is!
I'll update the web page soon, but Thursday
I'm heading to my oldest son's wedding and a
weekend of partying. Even Value_Locate will be
pretty far from my thoughts, I imagine. I'd leave
Coyote in charge and have him to it, but, well,
you know...
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|