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

scipy-svn@scip... scipy-svn@scip...
Mon Nov 29 08:46:54 CST 2010


Author: rgommers
Date: 2010-11-29 08:46:54 -0600 (Mon, 29 Nov 2010)
New Revision: 6978

Modified:
   trunk/scipy/stats/morestats.py
Log:
Clean up some more upused code in morestats.py.

Modified: trunk/scipy/stats/morestats.py
===================================================================
--- trunk/scipy/stats/morestats.py	2010-11-29 14:46:33 UTC (rev 6977)
+++ trunk/scipy/stats/morestats.py	2010-11-29 14:46:54 UTC (rev 6978)
@@ -677,34 +677,6 @@
     return A2, critical, sig
 
 
-def _find_repeats(arr):
-    """Find repeats in the array and return (repeats, repeat_count)
-    """
-    arr = sort(arr)
-    lastval = arr[0]
-    howmany = 0
-    ind = 1
-    N = len(arr)
-    repeat = 0
-    replist = []
-    repnum = []
-    while ind < N:
-        if arr[ind] != lastval:
-            if repeat:
-                repnum.append(howmany+1)
-                repeat = 0
-                howmany = 0
-        else:
-            howmany += 1
-            repeat = 1
-            if (howmany == 1):
-                replist.append(arr[ind])
-        lastval = arr[ind]
-        ind += 1
-    if repeat:
-        repnum.append(howmany+1)
-    return replist, repnum
-
 def ansari(x,y):
     """
     Perform the Ansari-Bradley test for equal scale parameters



More information about the Scipy-svn mailing list