diversity-0.8.1.0: Quantify the diversity of a population

Safe HaskellSafe
LanguageHaskell98

Math.Diversity.Statistics

Description

Collection of functions pertaining statistics needed in the library

Synopsis

Documentation

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