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

scipy-svn@scip... scipy-svn@scip...
Wed Feb 18 22:52:47 CST 2009


Author: josef
Date: 2009-02-18 22:52:40 -0600 (Wed, 18 Feb 2009)
New Revision: 5565

Modified:
   trunk/scipy/stats/stats.py
Log:
fix more np.mean replacements, no tests added

Modified: trunk/scipy/stats/stats.py
===================================================================
--- trunk/scipy/stats/stats.py	2009-02-19 04:43:39 UTC (rev 5564)
+++ trunk/scipy/stats/stats.py	2009-02-19 04:52:40 UTC (rev 5565)
@@ -592,7 +592,7 @@
 
     # No trimming.
     if limits is None:
-        return mean(a,None)
+        return np.mean(a,None)
 
     am = mask_to_limits(a.ravel(), limits, inclusive)
     return am.mean()
@@ -1365,7 +1365,7 @@
 of the compare array.
 
 """
-    mns = mean(compare,axis)
+    mns = np.mean(compare,axis)
     sstd = samplestd(compare,0)
     return (scores - mns) / sstd
 
@@ -1437,7 +1437,7 @@
     upper tails.
     """
     newa = trimboth(np.sort(a),proportiontocut)
-    return mean(newa,axis=0)
+    return np.mean(newa,axis=0)
 
 
 
@@ -1481,8 +1481,8 @@
     N = m.shape[0]
     if (y.shape[0] != N):
         raise ValueError, "x and y must have the same number of observations."
-    m = m - mean(m,axis=0)
-    y = y - mean(y,axis=0)
+    m = m - np.mean(m,axis=0)
+    y = y - np.mean(y,axis=0)
     if bias:
         fact = N*1.0
     else:



More information about the Scipy-svn mailing list