Guys --
I'm a little puzzled by a NumPy behavior. Perhaps the gurus on this
list can enlighten me, please!
I am working with numpy.histogram. I have a decent understanding of
how it works when given an ascending range to bin into. However, when
I give it a *decending* range, I can't figure
Stuart Brorson wrote:
Guys --
I'm a little puzzled by a NumPy behavior. Perhaps the gurus on this
list can enlighten me, please!
I am working with numpy.histogram. I have a decent understanding of
how it works when given an ascending range to bin into. However, when
I give it a
Check how you're implementing the histogram function with respect to
that range statement. It seems to make a difference, desirable or not.
import numpy
numpy.__version__
'1.0.4.dev3982'
A = numpy.array([1, 2, 3, 4, 5, 6, 5, 4, 5, 4, 3, 2, 1])
(x, y) = numpy.histogram(A, range(0, 7))
My bad...I also note that I forgot to decrement the descending list in
my example. Ignore
Robert Kern wrote:
Mark.Miller wrote:
Check how you're implementing the histogram function with respect to
that range statement. It seems to make a difference, desirable or not.
import numpy
Robert,
Thanks for your answers about histogram's meaning for range=(7, 0)!
* If it truely isn't meaningful, why not catch the case and reject
input? Maybe this is a bug ???
Patches are welcome.
OK. I don't know if you have a patch tracking system, so I'll just
post it here. If you
Stuart Brorson wrote:
Robert,
Thanks for your answers about histogram's meaning for range=(7, 0)!
* If it truely isn't meaningful, why not catch the case and reject
input? Maybe this is a bug ???
Patches are welcome.
OK. I don't know if you have a patch tracking system, so I'll
OK. I don't know if you have a patch tracking system, so I'll just
post it here. If you have a patch tracker, point me to it and I'll
enter the patch there.
http://projects.scipy.org/scipy/numpy
OK, entered as ticket #586.
Cheers,
Stuart
___