cookbook-3.0.1.1: Tiered general-purpose libraries with domain-specific applications.

Copyright(c) 2014 by Nate Pisarski
LicenseBSD3
Maintainernathanpisarski@gmail.com
StabilityStable
PortabilityPortable (Cookbook)
Safe HaskellSafe
LanguageHaskell98

Cookbook.Ingredients.Lists.Stats

Description

Library for determining mathematically whether two lists are similar.

Synopsis

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.