1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
{-# OPTIONS_GHC -funbox-strict-fields #-}
-- | Internal module used to share implementation details between the
-- family of ekg packages. DO NOT DEPEND ON THIS MODULE.
module System.Metrics.Distribution.Internal
( Stats(..)
) where
import Data.Int (Int64)
-- | Distribution statistics
data Stats = Stats
{ mean :: !Double -- ^ Sample mean
, variance :: !Double -- ^ Biased sample variance
, count :: !Int64 -- ^ Event count
, sum :: !Double -- ^ Sum of values
, min :: !Double -- ^ Min value seen
, max :: !Double -- ^ Max value seen
} deriving (Eq, Show)
|