úÎ- +       Safe-InferredGet the median, adapted from  3http://rosettacode.org/wiki/Averages/Median#Haskell!, but FIXED due to zero indexingGGet the median and median absolute deviation (MAD) of a list of numbersNoneqGets a random sampling by getting either the requested amount either directly or through the inverse (for speed)2Get the number of types of entities in a subsample_Repeat the sampling to get a median and MAD value for the runs for the expected species counts Safe-Inferred$At each position we have a diversityLAt each position we have a collection of fragments to find the diversity of        None+Takes two strings, returns Hamming distance Fast product division)Returns the diversity of a list of thingsLReturns the diversity of a map of the species and how many times it appears)Returns the richness of the observed data!?Returns the map of species with how many samples they appear in"+Returns the number of a that appear x times#4Returns the number of b that appear in x number of aRReturns the chao1 estimator of a map of the species and how many times it appearsÿ;Returns the chao2 estimator of a map of the sample labeled species (sample, species) and how many times it appears. This will calculate the overlap for you, so if you don't have the number of times it appears it does not matter, you can set it to 1 and get the same result as it's all about overlapping samples.$gBinomial for small or large numbers (slow but works for big numbers, fast but works for small numbers)9Returns the rarefaction curve for each position in a list%DEach sample has a collection of species, return a list of these maps9Returns the rarefaction curve for each position in a listMCalculates the percent of the curve that is above 95% of height of the curveˆReturns the number of individuals needed to get the proportion g of the estimated total richness of the assemblage. Sobs / Sest < g < 1„Returns the number of samples needed to get the proportion g of the estimated total richness of the assemblage. Sobs / Sest < g < 1ˆReturns the number of samples needed before a new sample returns less than x new species. Warning, goes forever until threshold is met! !"#$%   !"#$%None&Get the sample ID of a sequence«Generates fragment list from string of "win" length. This version differs from normal as it takes a tuple with the position as the first entry. Is in tail recursive form+Generate the frequency from a FastaSequence&&None'      !"#$%&'()*+,-.diversity-0.6.2.1Math.Diversity.StatisticsMath.Diversity.RandomSamplingMath.Diversity.TypesMath.Diversity.Diversity Math.Diversity.GenerateDiversityMath.Diversity.Printmedianmedmad subsamplesubsampleSpecies subsampleES DiversityMap PositionMap FrequencyMapWindowLabelOrder DiversityPositionSampleFragmenthamming diversitydiversityOfMaprichnesschao1chao2rarefactionCurverarefactionSampleCurverarefactionViable individualGsampleGminRarefaction fragmentPosgeneratePositionMapprintDiversityprintRarefactionprintRarefactionCurveproductDivisionoverlapSampleMap abundanceFreq overlapFreqspecialBinomialgetSampleContents getSample