[SciPy-dev] Problem with stats.distributions.randint

Otto Tronarp otttr440 at student.liu.se
Fri Jan 24 11:46:58 CST 2003


More problems, the __call__ method of rv_discrete has wrong indentation
so it's actually a local function in the moment method. This is
beginning to be a little scary, as far as I can see the code has looked
like this for 2 month. Doesn't anyone use these? Have someone ever
checked that they generate correct results or at least results that look
correct?

The attached patch tries to fix all of the problems reported in this
thread.


Regards, 
Otto

On Fri, 2003-01-24 at 17:49, Otto Tronarp wrote:
> On Fri, 2003-01-24 at 15:28, Otto Tronarp wrote:
> > Hi,
> > 
> > I'm having problem with stats.distributions.randint, I get the following
> > traceback:
> > 
> 
> There seems to be even more problems with randint_gen. I think there is
> a missing 'return fact' in the _pdf method. The attached patch fixes
> that along with the other problems.
> 
> Regards,
> Otto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixdiscrete_dists.patch
Type: text/x-patch
Size: 1703 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20030124/0d1a68c7/attachment.bin 


More information about the Scipy-dev mailing list