[Scipy-svn] r6438 - trunk/scipy/stats

scipy-svn at scipy.org scipy-svn at scipy.org
Sun May 30 02:54:22 EDT 2010


Author: oliphant
Date: 2010-05-30 01:54:22 -0500 (Sun, 30 May 2010)
New Revision: 6438

Modified:
   trunk/scipy/stats/distributions.py
Log:
Fix inverted gamma pdf

Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py	2010-05-30 06:50:44 UTC (rev 6437)
+++ trunk/scipy/stats/distributions.py	2010-05-30 06:54:22 UTC (rev 6438)
@@ -2963,7 +2963,7 @@
 
 class invgamma_gen(rv_continuous):
     def _pdf(self, x, a):
-        return exp(-self._logpdf(x,a))
+        return exp(self._logpdf(x,a))
     def _logpdf(self, x, a):
         return (-(a+1)*log(x)-gamln(a) - 1.0/x)
     def _cdf(self, x, a):




More information about the Scipy-svn mailing list