| Portability | Portable (Cookbook) |
|---|---|
| Stability | Stable |
| Maintainer | [email protected] |
| Safe Haskell | Safe-Inferred |
Cookbook.Ingredients.Lists.Stats
Description
Library for determining mathematically whether two lists are similar.
Documentation
frequency :: Eq a => [a] -> [(a, Int)]Source
Creates a list with the frequency of elements in a list.
mostFrequent :: Eq a => [a] -> Int -> [a]Source
Returns the x-amount of most frequent elements in a list. If there is a tie, the order it appears in a list takes precedence.