[Scipy-tickets] [SciPy] #1291: stats.discrete distributions hypergeom.sf exception

SciPy Trac scipy-tickets@scipy....
Fri Oct 22 11:56:51 CDT 2010

#1291: stats.discrete distributions hypergeom.sf exception
 Reporter:  josefpktd    |       Owner:  somebody    
     Type:  defect       |      Status:  needs_review
 Priority:  normal       |   Milestone:  0.9.0       
Component:  scipy.stats  |     Version:  0.7.0       
 Keywords:               |  

Comment(by josefpktd):

 an update after looking a bit

 to some but not all the methods, I had added conditional execution:

         if any(cond):
             goodargs = argsreduce(cond, *((k,)+args))

 logsf seems to work (in a similar way as sf) without an if, but I think
 there might be something fishy

 >>> stats.hypergeom.logsf(-5,10,2,5)

Ticket URL: <http://projects.scipy.org/scipy/ticket/1291#comment:5>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list