scipy/scipy — pull request #506 by WarrenWeckesser (2013-04-12 22:29:43+00:00)
Title: MAINT: stats: A small improvement to the wilcoxon code

This is small improvement to the code in the function `wilcoxon`. `find_repeats` is actually faster than `np.unique`, so just call `find_repeats` and check to result to determine if a correction for ties is needed.