- 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

# Documentation

sum :: Num a => [a] -> aSource

The sum of a list of numbers (without overflowing stack,
unlike `Prelude.sum`

).

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