rangeMedian

rangeMedian. Finds the median. Modifies the range via topN or sort in the process.

Note: topN is the preferred algorithm, but the version prior to Phobos 2.073 is pathologically slow on certain data sets. Use topN in 2.073 and later, sort in earlier versions.

See: https://issues.dlang.org/show_bug.cgi?id=16517 https://github.com/dlang/phobos/pull/4815

http://forum.dlang.org/post/ujuugklmbibuheptdwcn@forum.dlang.org

rangeMedian
(
Range
)
(
Range r
)
if (
isRandomAccessRange!Range &&
hasLength!Range
&&
hasSlicing!Range
)

Meta