diversity-0.8.1.0: Quantify the diversity of a population

Safe HaskellSafe
LanguageHaskell98

Math.Diversity.RandomSampling

Description

Collection of functions pertaining to getting random samples from - a population

Synopsis

Documentation

subsample :: (Eq a, Ord a) => Int -> Int -> StdGen -> [a] -> [a] Source #

Gets a random sampling by getting either the requested amount either directly or through the inverse (for speed)

subsampleSpecies :: (Eq a, Ord a) => Int -> Int -> StdGen -> [a] -> Int Source #

Get the number of types of entities in a subsample

subsampleES :: (Eq a, Ord a) => Int -> Int -> Int -> [a] -> IO (Maybe (Double, Double)) Source #

Repeat the sampling to get a median and MAD value for the runs for the expected species counts