buildbox-1.5.1.1: Rehackable components for writing buildbots and test harnesses.

BuildBox.Aspect.Stats

Synopsis

Documentation

data Stats a Source

Statistics extracted from many-valued data.

Constructors

Stats 

Fields

statsMin :: a
 
statsAvg :: a
 
statsMax :: a
 

Instances

Read a => Read (Stats a) 
Show a => Show (Stats a) 
Pretty a => Pretty (Stats a) 
HasUnits a a => HasUnits (Stats a) a 

makeStats :: (Real a, Dividable a) => [a] -> Stats aSource

Make statistics from a list of values.

predStats :: (a -> Bool) -> Stats a -> BoolSource

Return True if the predicate matches any of the min, avg, max values.

liftStats :: (a -> b) -> Stats a -> Stats bSource

Lift a function to each component of a Stats

liftStats2 :: (a -> b -> c) -> Stats a -> Stats b -> Stats cSource

Lift a binary function to each component of a Stats