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

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Jan 14 16:03:11 EST 2011


Author: josef
Date: 2011-01-14 15:03:11 -0600 (Fri, 14 Jan 2011)
New Revision: 7030

Modified:
   trunk/scipy/stats/distributions.py
Log:
distributions beta_gen, don't use math, exception in ticket:1276

Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py	2011-01-14 20:55:28 UTC (rev 7029)
+++ trunk/scipy/stats/distributions.py	2011-01-14 21:03:11 UTC (rev 7030)
@@ -2017,7 +2017,7 @@
         g2 = _kurtosis(data)
         def func(x):
             a, b = x
-            sk = 2*(b-a)*math.sqrt(a + b + 1) / (a + b + 2) / math.sqrt(a*b)
+            sk = 2*(b-a)*sqrt(a + b + 1) / (a + b + 2) / sqrt(a*b)
             ku = a**3 - a**2*(2*b-1) + b**2*(b+1) - 2*a*b*(b+2)
             ku /= a*b*(a+b+2)*(a+b+3)
             ku *= 6




More information about the Scipy-svn mailing list