Copyright | Copyright (c) 2010 Patrick Perry <patperry@gmail.com> |
---|---|
License | BSD3 |
Maintainer | Patrick Perry <patperry@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell98 |
Summary statistics for Bool
s.
- data Summary
- size :: Summary -> Int
- sum :: Summary -> Int
- mean :: Summary -> Double
- meanSE :: Summary -> Double
- meanCI :: Double -> Summary -> (Double, Double)
- empty :: Summary
- singleton :: Bool -> Summary
- insert :: Bool -> Summary -> Summary
- insertWith :: (a -> Bool) -> a -> Summary -> Summary
- union :: Summary -> Summary -> Summary
- unions :: [Summary] -> Summary
- fromList :: [Bool] -> Summary
- fromListWith :: (a -> Bool) -> [a] -> Summary
- toStats :: Summary -> (Int, Int)
- fromStats :: Int -> Int -> Summary
Summary type
Properties
Sum
Mean
meanCI :: Double -> Summary -> (Double, Double) Source #
Central Limit Theorem based confidence interval for the
population mean (proportion) at the specified coverage level. The
level must be in the range (0,1)
.
Construction
Insertion
insertWith :: (a -> Bool) -> a -> Summary -> Summary Source #
Apply a function and update the summary with the result.
Combination
Conversion
Lists
fromListWith :: (a -> Bool) -> [a] -> Summary Source #
Map a function over a list of values and summarize the results.