diversity-0.8.0.2: Quantify the diversity of a population

Math.Diversity.Statistics

Description

Collection of functions pertaining statistics needed in the library

Synopsis

median :: [Double] -> Maybe Double Source #

Get the median, adapted from http://rosettacode.org/wiki/Averages/Median#Haskell, but FIXED due to zero indexing. Also made sure that it is sorted

medmad :: [Double] -> Maybe (Double, Double) Source #

Get the median and median absolute deviation (MAD) of a list of numbers