[Numpy-discussion] bug in stats.randint

2009-04-23 Thread Flavio Coelho
Hi, I stumbled upon something I think is a bug in scipy: In [4]: stats.randint(1.,15.).ppf([.1,.2,.3,.4,.5]) Out[4]: array([ 2., 3., 5., 6., 7.]) When you pass float arguments to stats.randint and then call the ppf method, you get an array of floats, which clearly wrong. The rvs method doesn

Re: [Numpy-discussion] bug in stats.randint

2009-04-23 Thread josef . pktd
On Thu, Apr 23, 2009 at 9:27 AM, Flavio Coelho wrote: > > Hi, > > I stumbled upon something I think is a bug in scipy: > > In [4]: stats.randint(1.,15.).ppf([.1, > .2,.3,.4,.5]) > Out[4]: array([ 2.,  3.,  5.,  6.,  7.]) > > When you pass float arguments to stats.randint and then call the ppf meth

Re: [Numpy-discussion] bug in stats.randint

2009-04-23 Thread josef . pktd
On Thu, Apr 23, 2009 at 9:56 AM, wrote: > On Thu, Apr 23, 2009 at 9:27 AM, Flavio Coelho wrote: >> >> Hi, >> >> I stumbled upon something I think is a bug in scipy: >> >> In [4]: stats.randint(1.,15.).ppf([.1, >> .2,.3,.4,.5]) >> Out[4]: array([ 2.,  3.,  5.,  6.,  7.]) >> >> When you pass float

Re: [Numpy-discussion] bug in stats.randint

2009-04-23 Thread Flavio Coelho
On Thu, Apr 23, 2009 at 2:56 PM, wrote: > On Thu, Apr 23, 2009 at 9:27 AM, Flavio Coelho wrote: > > > > Hi, > > > > I stumbled upon something I think is a bug in scipy: > > > > In [4]: stats.randint(1.,15.).ppf([.1, > > .2,.3,.4,.5]) > > Out[4]: array([ 2., 3., 5., 6., 7.]) > > > > When you

Re: [Numpy-discussion] bug in stats.randint

2009-04-23 Thread josef . pktd
On Thu, Apr 23, 2009 at 11:18 AM, Flavio Coelho wrote: > > > On Thu, Apr 23, 2009 at 2:56 PM, wrote: >> >> On Thu, Apr 23, 2009 at 9:27 AM, Flavio Coelho wrote: >> > >> > Hi, >> > >> > I stumbled upon something I think is a bug in scipy: >> > >> > In [4]: stats.randint(1.,15.).ppf([.1, >> > .2,.