[Scipy-svn] r6434 - trunk/scipy/stats
scipy-svn at scipy.org
scipy-svn at scipy.org
Sat May 29 23:53:50 EDT 2010
Author: oliphant
Date: 2010-05-29 22:53:50 -0500 (Sat, 29 May 2010)
New Revision: 6434
Modified:
trunk/scipy/stats/distributions.py
Log:
A few cleanups.
Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py 2010-05-30 03:51:49 UTC (rev 6433)
+++ trunk/scipy/stats/distributions.py 2010-05-30 03:53:50 UTC (rev 6434)
@@ -1443,8 +1443,8 @@
Estimate loc and scale parameters from data using 1st and 2nd moments
"""
mu, mu2 = self.stats(*args,moments='mv')
- muhat = st.nanmean(data)
- mu2hat = st.nanstd(data)
+ muhat = arr(data).mean()
+ mu2hat = arr(data).var()
Shat = sqrt(mu2hat / mu2)
Lhat = muhat - Shat*mu
return Lhat, Shat
More information about the Scipy-svn
mailing list