[Scipy-svn] r6460 - trunk/scipy/stats
scipy-svn at scipy.org
scipy-svn at scipy.org
Mon May 31 19:49:25 EDT 2010
Author: oliphant
Date: 2010-05-31 18:49:24 -0500 (Mon, 31 May 2010)
New Revision: 6460
Modified:
trunk/scipy/stats/distributions.py
Log:
Fix syntax for Python < 2.6
Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py 2010-05-31 23:48:25 UTC (rev 6459)
+++ trunk/scipy/stats/distributions.py 2010-05-31 23:49:24 UTC (rev 6460)
@@ -1504,7 +1504,7 @@
"""
Estimate loc and scale parameters from data using 1st and 2nd moments
"""
- mu, mu2 = self.stats(*args,moments='mv')
+ mu, mu2 = self.stats(*args,**{'moments':'mv'})
muhat = arr(data).mean()
mu2hat = arr(data).var()
Shat = sqrt(mu2hat / mu2)
More information about the Scipy-svn
mailing list