Skip to content

Commit cf640a4

Browse files
committed
remove duplicate
1 parent f6bfb73 commit cf640a4

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

src/ranking.jl

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -73,32 +73,3 @@ function _fixed_rankmatches!(ranks, fulldist, distances, mus, flen, valids)
7373
end
7474
return ranks
7575
end
76-
77-
function _rankmatches!(ranks, fbools, mamatc)
78-
79-
# (φ, (fbool, ec, mc)) = collect(enumerate(zip(fbools, mamatc, musc)))[1]
80-
81-
for (φ, (fbool, ec)) in enumerate(zip(fbools, mamatc))
82-
if fbool
83-
# in-place ranking
84-
# ranks[φ] = StatsBase.ordinalrank(ec);
85-
# ranks[φ][isinf.(ec)] .= 0; # make zero if not valid
86-
87-
# really, we want to be able to shut off the mus easily
88-
# and make it such that we get the mu elements in ranked order
89-
# by simple indexing:
90-
# ranks[φ] = @views mc[sortperm(ec)];
91-
92-
# give indices based on ids
93-
# only give valid ones
94-
ranks[φ] = sortperm(ec)[1:findfirst(isinf.(ec[sortperm(ec)]))-1]
95-
96-
# remove impossible mus (for that f)
97-
# ranks[φ][findfirst(isinf.(ec[sortperm(ec)])):end] .= 0
98-
# Inf values should never be used, in any model
99-
# example refinement application:
100-
# ormus[1+5:end] .= 0
101-
end
102-
end
103-
return ranks
104-
end

0 commit comments

Comments
 (0)