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

scipy-svn@scip... scipy-svn@scip...
Thu Dec 4 17:17:29 CST 2008


Author: josef
Date: 2008-12-04 17:17:27 -0600 (Thu, 04 Dec 2008)
New Revision: 5226

Modified:
   trunk/scipy/stats/distributions.py
Log:
correct skew, kurtosis calculation in generic stats method (cont. distr.) , this raised exception in a few cases. Some incorrect numbers for skew and kurtosis of individual distributions are left.

Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py	2008-12-04 23:11:25 UTC (rev 5225)
+++ trunk/scipy/stats/distributions.py	2008-12-04 23:17:27 UTC (rev 5226)
@@ -696,7 +696,8 @@
 
         signature = inspect.getargspec(self._stats.im_func)
         if (signature[2] is not None) or ('moments' in signature[0]):
-            mu, mu2, g1, g2 = self._stats(*args,**{'moments':moments})
+            #this did not fetch mv, adjust to also get mv
+            mu, mu2, g1, g2 = self._stats(*args,**{'moments':moments+'mv'})
         else:
             mu, mu2, g1, g2 = self._stats(*args)
         if g1 is None:



More information about the Scipy-svn mailing list