Safe Haskell | Safe-Infered |
---|
Utility functions for statistical accumulation.
Documentation
class Show c => Stat s c | c -> s whereSource
Typeclass describing necessary statistical accumulations functions. Types defining an instance of Stat behave as if the given statistics were computed on the list of values, but they allow a potentially more efficient update of a given value. c is the statistical accumulation data type itself while s is a type of spread values used to calculate a statistics. s defined as a type dependent from c in order to pretend ambiguity.
Type of statistical accumulations representing simple sum of values
SumStat Double |
data StdDevStat Source
Type of statistical accumulations representing values standard deviation
StdDevStat Double Double Double |
Show StdDevStat | |
Stat Double StdDevStat |
Type of statistical accumulations representing the amount of instances per each tags pair. See Also TagTagMap documentation.
type TagTagMap = Map (String, String) IntSource
Type to store the number of instances for each exclusion and location pair. This is necessary to calculate second component of location score.
Data type used to store spread values of type TagTagMap. This data type is introduced only to defin an instance of Stat for TagTagMap.
mapTmpToMap :: [MapData] -> [TagTagMap]Source