Portability | portable |
---|---|

Stability | experimental |

Maintainer | m.p.donadio@ieee.org |

Simple module for computing the median on a list

Reference: Ross, NRiC

- median :: (Ord a, Fractional a) => [a] -> a
- medianFast :: (Ord a, Fractional a) => [a] -> a

# Documentation

median :: (Ord a, Fractional a) => [a] -> aSource

Compute the median of a list

medianFast :: (Ord a, Fractional a) => [a] -> aSource

Compute the center of the list in a more lazy manner and thus halves memory requirement.