[Numpy-discussion] histogram using decending range -- what do the results mean?

2007-10-05 Thread Stuart Brorson
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

Re: [Numpy-discussion] histogram using decending range -- what do the results mean?

2007-10-05 Thread Robert Kern
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

Re: [Numpy-discussion] histogram using decending range -- what do the results mean?

2007-10-05 Thread Mark.Miller
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))

Re: [Numpy-discussion] histogram using decending range -- what do the results mean?

2007-10-05 Thread Mark.Miller
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

Re: [Numpy-discussion] histogram using decending range -- what do the results mean?

2007-10-05 Thread Stuart Brorson
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

Re: [Numpy-discussion] histogram using decending range -- what do the results mean?

2007-10-05 Thread Robert Kern
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

Re: [Numpy-discussion] histogram using decending range -- what do the results mean?

2007-10-05 Thread Stuart Brorson
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 ___