Handbook
Glossary
medians ( seq -- lower upper )
Statistics
Prev:
upper-median ( seq -- elt )
Next:
mode ( seq -- x )
Vocabulary
math
.
statistics
Inputs
seq
an
object
Outputs
lower
an
object
upper
an
object
Definition
USING:
arrays
kernel
sequences
;
IN:
math.statistics
:
medians
( seq -- lower upper )
[
]
[
[
lower-median-index
]
[
midpoint@
]
bi
2array
]
bi
kth-smallests
first2
;