Hi David
On Thu, Jun 29, 2006 at 02:42:51PM -0400, David Huard wrote:
> Here is something I noticed with digitize() that I guess would qualify as a
> small but annoying bug.
>
> In [165]: x = rand(10); bin = linspace(x.min(), x.max(), 10); print x.min();
> print bin[0]; digitize(x,bin)
> 0.092503
Hi, Here is something I noticed with digitize() that I guess would qualify as a small but annoying bug. In [165]: x = rand(10); bin = linspace(x.min(), x.max(), 10); print x.min(); print bin[0]; digitize(x,bin)
0.09250301841440.0925030184144Out[165]: array([2, 9, 5, 9, 6, 1, 1, 1, 4, 5])In [166]: x