-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Numerical statistics for Foldable containers -- -- Staf is a pure Haskell module that implements a safe interface to a -- set of basic numerical statistics that only assume the Foldable -- typeclass for the underlying container. @package staf @version 1.0.0 -- | Stats.Foldable is a pure Haskell module that implements a safe -- interface to a set of basic numerical statistics that only assume the -- Foldable typeclass for the underlying container. module Stats.Foldable -- | Compute the arithmetic mean of a population. amean :: (Foldable f, Floating a) => f a -> Maybe a -- | Find the minimal value of a series. min :: (Foldable f, Ord a) => f a -> Maybe a -- | Find the maximal value of a population. max :: (Foldable f, Ord a) => f a -> Maybe a -- | Compute the variance of a population. var :: (Foldable f, Floating a) => f a -> Maybe a -- | Compute the standard deviation of a population. stddev :: (Foldable f, Floating a) => f a -> Maybe a -- | Compute the covariance of two populations. covar :: (Foldable f, Floating a) => f a -> f a -> Maybe a -- | Compute the correlation of two populations. correl :: (Foldable f, Floating a) => f a -> f a -> Maybe a