Re: [Numpy-discussion] bincount limitations

2011-06-02 Thread Skipper Seabold
On Thu, Jun 2, 2011 at 1:11 PM, Robert Kern wrote: > On Thu, Jun 2, 2011 at 12:08, Skipper Seabold wrote: >> On Wed, Jun 1, 2011 at 10:10 PM, Alan G Isaac wrote: On Thu, Jun 2, 2011 at 1:49 AM, Mark Miller   wrote: > Not quite. Bincount is fine if you have a set of approximately >>

Re: [Numpy-discussion] bincount limitations

2011-06-02 Thread Robert Kern
On Thu, Jun 2, 2011 at 12:08, Skipper Seabold wrote: > On Wed, Jun 1, 2011 at 10:10 PM, Alan G Isaac wrote: >>> On Thu, Jun 2, 2011 at 1:49 AM, Mark Miller   >>> wrote: Not quite. Bincount is fine if you have a set of approximately sequential numbers. But if you don't >> >> >> On 6/

Re: [Numpy-discussion] bincount limitations

2011-06-02 Thread Skipper Seabold
On Wed, Jun 1, 2011 at 10:10 PM, Alan G Isaac wrote: >> On Thu, Jun 2, 2011 at 1:49 AM, Mark Miller   >> wrote: >>> Not quite. Bincount is fine if you have a set of approximately >>> sequential numbers. But if you don't > > > On 6/1/2011 9:35 PM, David Cournapeau wrote: >> Even worse, it fails

Re: [Numpy-discussion] bincount limitations

2011-06-01 Thread Alan G Isaac
> On Thu, Jun 2, 2011 at 1:49 AM, Mark Miller wrote: >> Not quite. Bincount is fine if you have a set of approximately >> sequential numbers. But if you don't On 6/1/2011 9:35 PM, David Cournapeau wrote: > Even worse, it fails miserably if you sequential numbers but with a high > shift. > n