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

scipy-svn at scipy.org scipy-svn at scipy.org
Sun May 30 02:50:45 EDT 2010


Author: oliphant
Date: 2010-05-30 01:50:44 -0500 (Sun, 30 May 2010)
New Revision: 6437

Modified:
   trunk/scipy/stats/distributions.py
Log:
Fix typo and function call arguments.

Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py	2010-05-30 06:46:37 UTC (rev 6436)
+++ trunk/scipy/stats/distributions.py	2010-05-30 06:50:44 UTC (rev 6437)
@@ -2654,7 +2654,7 @@
         a = 4 / _skew(data)**2
         return super(gamma_gen, self)._fitstart(data, args=(a,))
     def fit(self, data, *args, **kwds):
-        floc = kwds.get('floc', None):
+        floc = kwds.get('floc', None)
         if floc == 0:
             xbar = ravel(data).mean()
             logx_bar = ravel(log(data)).mean()
@@ -2664,7 +2664,7 @@
             aest = (3-s + math.sqrt((s-3)**2 + 24*s)) / (12*s)
             xa = aest*(1-0.4)
             xb = aest*(1+0.4)
-            a = optimize.brentq(func, [xa, xb], disp=0)
+            a = optimize.brentq(func, xa, xb, disp=0)
             scale = xbar / a
             return a, floc, scale
         else:




More information about the Scipy-svn mailing list