From b4b97ebb046d30eb37a4f3515603ef04120eec3d Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Wed, 21 Mar 2012 17:07:00 -0700 Subject: [PATCH] Correct tiedrank semantics. --- base/statistics.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/statistics.jl b/base/statistics.jl index 9237885479595..030d9b48969a2 100644 --- a/base/statistics.jl +++ b/base/statistics.jl @@ -105,7 +105,7 @@ end # order (aka, rank), resolving ties using the mean rank function tiedrank(v::AbstractArray) n = length(v) - place = invperm(order(v)) + place = order(v) ord = Array(Float64, n) i = 1