Stability | experimental |
---|---|
Maintainer | Patrick Perry <patperry@gmail.com> |
Safe Haskell | None |
Summary statistics for Double
s.
- data Summary
- summary :: [Double] -> Summary
- update :: Summary -> Double -> Summary
- sampleSize :: Summary -> Int
- sampleMin :: Summary -> Double
- sampleMax :: Summary -> Double
- sampleMean :: Summary -> Double
- sampleSE :: Summary -> Double
- sampleVar :: Summary -> Double
- sampleSD :: Summary -> Double
- sampleCI :: Double -> Summary -> (Double, Double)
The Summary
data type
A type for storing summary statistics for a data set including sample size, min and max values, and first and second moments.
update :: Summary -> Double -> SummarySource
Update the summary with a data point. Running mean and variance computed as in Knuth, Vol 2, page 232, 3rd edition, see http:www.johndcook.com/standard_deviation.html for a description.
Summary
properties
sampleSize :: Summary -> IntSource
Get the sample size.
sampleMean :: Summary -> DoubleSource
Get the sample mean.