[Scipy-tickets] [SciPy] #1793: stats.geom.logpmf missing log for 2nd term

SciPy Trac scipy-tickets@scipy....
Sun Dec 16 18:34:24 CST 2012


#1793: stats.geom.logpmf missing log for 2nd term
--------------------------+-------------------------------------------------
 Reporter:  jkscholz      |       Owner:  rgommers   
     Type:  defect        |      Status:  new        
 Priority:  normal        |   Milestone:  Unscheduled
Component:  scipy.stats   |     Version:  0.11.0     
 Keywords:  geom, logpmf  |  
--------------------------+-------------------------------------------------
 the current version of scipy.stats.geom.logpmf is missing a log for the
 2nd term of the function.

 [current version]
     def _logpmf(self, k, p):
         return (k-1)*log(1-p) + p

 [corrected]
     def _logpmf(self, k, p):
         return (k-1)*log(1-p) + log(p)

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


More information about the Scipy-tickets mailing list