factory-0.2.1.1: Rational arithmetic in an irrational world.

Safe HaskellNone
LanguageHaskell98

Factory.Math.Statistics

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Miscellaneous statistics functions.

Synopsis

Functions

getMean :: (Foldable foldable, Fractional result, Real value) => foldable value -> result Source

getWeightedMean Source

Arguments

:: (Foldable foldable, Fractional result, Real value, Real weight) 
=> foldable (value, weight)

Each pair consists of a value & the corresponding weight.

-> result 

getVariance :: (Foldable foldable, Fractional variance, Functor foldable, Real value) => foldable value -> variance Source

getStandardDeviation :: (Foldable foldable, Floating result, Functor foldable, Real value) => foldable value -> result Source

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

getAverageAbsoluteDeviation :: (Foldable foldable, Fractional result, Functor foldable, Real value) => foldable value -> result Source

getCoefficientOfVariance :: (Foldable foldable, Eq result, Floating result, Functor foldable, Real value) => foldable value -> result Source

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

nCr Source

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.

nPr Source

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.