Safe Haskell | None |
---|---|

Language | Haskell98 |

Collection of functions pertaining to finding the diversity of samples.

- hamming :: String -> String -> Int
- diversity :: Ord b => Double -> [b] -> Double
- diversityOfMap :: Double -> Map (Sample, Fragment) Int -> Double
- rarefactionCurve :: Bool -> Int -> Integer -> Integer -> Map (Sample, Fragment) Int -> IO [(Int, (Double, Double))]
- rarefactionSampleCurve :: Bool -> Int -> Int -> Map (Sample, Fragment) Int -> IO [(Int, (Double, Double))]
- rarefactionViable :: [Double] -> Double

# Documentation

diversityOfMap :: Double -> Map (Sample, Fragment) Int -> Double Source

Returns the diversity of a map of things

rarefactionCurve :: Bool -> Int -> Integer -> Integer -> Map (Sample, Fragment) Int -> IO [(Int, (Double, Double))] Source

Returns the rarefaction curve for each position in a list

rarefactionSampleCurve :: Bool -> Int -> Int -> Map (Sample, Fragment) Int -> IO [(Int, (Double, Double))] Source

Returns the rarefaction curve for each position in a list

rarefactionViable :: [Double] -> Double Source

Calculates the percent of the curve that is above 95% of height of the curve