Hi, some time ago I needed the same thing and hacked the function
histogram (from numpy or matplo. Here goes my function
## Calculates the histogram allowing for overlapping bins, which are
given by
#
# @param a
# @param bins a sequence of pairs (left,right), limits for each bin
#
# @return hist
Hi, some time ago I needed the same thing and hacked the function
histogram (from numpy). Here goes my function, I hope it will result useful
Cheers,
Juan
## Calculates the histogram allowing for overlapping bins, which are
given by
#
# @param a
# @param bins a sequence of pairs
Let's say I generate a bunch of random numbers from 0-1. Then, I'd like
to make a histogram of it. But here's the clincher. I'd like my bins to
overlap a bit. For example, if the first bin is from 0 - 0.1, centered
on 0.05, I'd like the next (second) bin to be centered on 0.1 and range
from
It'd be cool if we could do something like
bins = [(0.0,0.05,0.1),(0.05,0.1,0.15)...]
Where I have specified the left edge, center and right edge of each
bin. Yeah, that'd be pretty slick.
S
On Sat Oct 20 16:21:41 2012, Steven Boada wrote:
Let's say I generate a bunch of random numbers from
On Sat, Oct 20, 2012 at 10:25 PM, Steven Boada bo...@physics.tamu.edu wrote:
It'd be cool if we could do something like
bins = [(0.0,0.05,0.1),(0.05,0.1,0.15)...]
Where I have specified the left edge, center and right edge of each
bin. Yeah, that'd be pretty slick.
S
On Sat Oct 20
On Sat, Oct 20, 2012 at 11:37 PM, Benjamin Root ben.r...@ou.edu wrote:
On Saturday, October 20, 2012, Damon McDougall wrote:
On Sat, Oct 20, 2012 at 10:25 PM, Steven Boada bo...@physics.tamu.edu
wrote:
It'd be cool if we could do something like
bins =