Handbook
Glossary
rank-by ( seq method: ( min max -- rank ) -- seq' )
Vocabulary
math
.
statistics
.
private
Inputs
seq
an
object
method
a
quotation
with stack effect
( min max -- rank )
Outputs
seq'
an
object
Definition
USING:
assocs
kernel
math.statistics
sequences
;
IN:
math.statistics.private
:
rank-by
( seq method: ( min max -- rank ) -- seq' )
[
dup
histogram
]
[
rankings
]
bi*
[
at
]
curry
map
;
inline