| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Numeric.Probability.Example.Histogram
Description
We have a set of symbols. We draw from this set n times with replacement. We then sort the symbols by their drawn frequency. What is the expected distribution of the histogram?
Synopsis
- example :: Ord a => T [] a -> Int -> T Rational (Map Int Int)
- flattenHistogram :: Num a => Map Int a -> [a]
- exampleList :: Ord a => T [] a -> Int -> T Rational [Int]
- histogram :: Ord a => [a] -> Map a Int
- decorate :: b -> [a] -> [(a, b)]
- expected :: T Rational (Map Int Int) -> Map Int Rational
- visualize :: Rational -> Map Int Rational -> IO ()
- partitions :: Int -> Int -> [IntMap Int]