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

scipy-svn@scip... scipy-svn@scip...
Tue Feb 24 23:40:50 CST 2009


Author: josef
Date: 2009-02-24 23:40:47 -0600 (Tue, 24 Feb 2009)
New Revision: 5597

Modified:
   trunk/scipy/stats/mstats_basic.py
Log:
correct "typo", wrong name in mstats_basic

Modified: trunk/scipy/stats/mstats_basic.py
===================================================================
--- trunk/scipy/stats/mstats_basic.py	2009-02-25 05:39:31 UTC (rev 5596)
+++ trunk/scipy/stats/mstats_basic.py	2009-02-25 05:40:47 UTC (rev 5597)
@@ -1501,7 +1501,7 @@
     """
     def _stdemed_1D(data):
         data = np.sort(data.compressed())
-        n = len(sorted)
+        n = len(data)
         z = 2.5758293035489004
         k = int(np.round((n+1)/2. - z * np.sqrt(n/4.),0))
         return ((data[n-k] - data[k-1])/(2.*z))



More information about the Scipy-svn mailing list