[Scipy-svn] r7045 - branches/0.9.x/scipy/stats
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat Jan 15 09:02:49 EST 2011
Author: rgommers
Date: 2011-01-15 08:02:49 -0600 (Sat, 15 Jan 2011)
New Revision: 7045
Modified:
branches/0.9.x/scipy/stats/distributions.py
Log:
distributions beta_gen, don't use math, exception in ticket:1276
Modified: branches/0.9.x/scipy/stats/distributions.py
===================================================================
--- branches/0.9.x/scipy/stats/distributions.py 2011-01-15 14:02:23 UTC (rev 7044)
+++ branches/0.9.x/scipy/stats/distributions.py 2011-01-15 14:02:49 UTC (rev 7045)
@@ -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