Safe Haskell | Safe-Infered |
---|

- sum :: Num a => [a] -> a
- mean :: (Fractional n, Real a) => [a] -> n
- accuracy :: (Eq a, Fractional n) => [a] -> [a] -> n
- recipRank :: (Eq a, Fractional n) => a -> [a] -> n
- avgPrecision :: (Fractional n, Ord a) => Set a -> [a] -> n
- jaccard :: (Fractional n, Ord a) => Set a -> Set a -> n

# Documentation

mean :: (Fractional n, Real a) => [a] -> nSource

The mean of a list of numbers.

accuracy :: (Eq a, Fractional n) => [a] -> [a] -> nSource

Accuracy: the proportion of elements in the first list equal to elements at corresponding positions in second list. Lists should be of equal lengths.

recipRank :: (Eq a, Fractional n) => a -> [a] -> nSource

Reciprocal rank: the reciprocal of the rank at which the first arguments occurs in the list given as the second argument.

avgPrecision :: (Fractional n, Ord a) => Set a -> [a] -> nSource

Average precision. http://en.wikipedia.org/wiki/Information_retrieval#Average_precision