poseidon-hs-1.5.5.0: A package with tools for working with Poseidon genotype data
Safe HaskellSafe-Inferred
LanguageHaskell2010

Poseidon.MathHelpers

Synopsis

Documentation

avg :: [Double] -> Double Source #

A helper function to calculate the mean of a list of doubles

roundTo :: Int -> Double -> Double Source #

A helper function to round doubles

roundToStr :: (PrintfArg a, Floating a) => Int -> a -> String Source #

A helper function to print rounded doubles

stdev :: [Double] -> Double Source #

A helper function to calculate the standard deviation of a list of doubles

meanAndSdRoundTo :: Int -> [Double] -> String Source #

A helper function to get a nice string with mean and sd for a list of doubles

meanAndSdInteger :: [Double] -> String Source #

A helper function to get a nice string with mean and sd for a list of doubles (here rounded to integer)