hs-carbon-0.0.0.2: src/Data/Summary.hs
{-# LANGUAGE TypeFamilies #-}
module Data.Summary where
-- | Many Monte Carlo simulations require statistical analysis of the results.
-- Any 'Data.Result' instances which can be described statistically should be made instances of 'Summary'.
class Summary s where
-- | Compute the mean of the aggregated observations
sampleMean :: s -> Double
-- | Compute the std. error of the aggregated observations
sampleSE :: s -> Double
-- | Return the number of observations aggregated
sampleSize :: s -> Int