factory-0.2.0.4: Rational arithmetic in an irrational world.

Safe HaskellSafe-Infered

Factory.Math.Statistics

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Miscellaneous statistics functions.

Synopsis

Functions

getMean :: (Foldable f, Real r, Fractional result) => f r -> resultSource

getVariance :: (Foldable f, Fractional variance, Functor f, Real r) => f r -> varianceSource

getStandardDeviation :: (Foldable f, Floating result, Functor f, Real r) => f r -> resultSource

Determines the standard-deviation of the specified numbers; http://en.wikipedia.org/wiki/Standard_deviation.

getAverageAbsoluteDeviation :: (Foldable f, Fractional result, Functor f, Real r) => f r -> resultSource

getCoefficientOfVariance :: (Foldable f, Eq result, Floating result, Functor f, Real r) => f r -> resultSource

Determines the coefficient-of-variance of the specified numbers; http://en.wikipedia.org/wiki/Coefficient_of_variation.

nCrSource

Arguments

:: (Algorithmic factorialAlgorithm, Integral i, Show i) 
=> factorialAlgorithm 
-> i

The total number of items from which to select.

-> i

The number of items 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, Show 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.