factory-0.0.0.2: Rational arithmetic in an irrational world.

Factory.Math.Statistics

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Miscellaneous statistical functions.

Synopsis

Functions

mean :: (Real r, Fractional f) => [r] -> fSource

Determines the http://en.wikipedia.org/wiki/Mean of the supplied numbers.

nCrSource

Arguments

:: (Algorithm factorialAlgorithm, Integral i) 
=> factorialAlgorithm 
-> i

The total number of items from which to select.

-> i

The number of iterms in a sample.

-> i

The number of combinations.

The number of unordered combinations of r objects taken from n; http://en.wikipedia.org/wiki/Combination.

nPrSource

Arguments

:: Integral i 
=> i

The total number of items from which to select.

-> i

The number of items in a sample.

-> i

The number of permutations.

The number of permutations of r objects taken from n; http://en.wikipedia.org/wiki/Permutations.