random-hypergeometric-0.1.0.0: Random variate generation from hypergeometric distributions

Copyright(c) 2015 Sam Rijs, (c) 2005 Robert Kern, (c) 1998 Ivan Frohne
LicenseMIT
Maintainersrijs@airpost.net
Stabilityexperimental
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Random.Distribution.Hypergeometric

Contents

Description

The parameters of the distribution describe k elements chosen from a population of l, with m elements of one type, and l-m of the other (all are positive integers).

Synopsis

Documentation

Constructors

hypergeometric :: (Num a, Ord a) => a -> a -> a -> Hypergeometric a Source

Constructs a hypergeometric distribution from the parameters k, l and m. Fails if l is negative, k is not in [0,l] or m is not in [0,l].

Accessors

Variate Generation

hypergeometricVarT :: (Num a, Ord a, Distribution Hypergeometric a) => a -> a -> a -> RVarT m a Source