Copyright | (c) 2015 Sam Rijs, (c) 2005 Robert Kern, (c) 1998 Ivan Frohne |
---|---|

License | MIT |

Maintainer | srijs@airpost.net |

Stability | experimental |

Safe Haskell | Trustworthy |

Language | Haskell2010 |

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).

- data Hypergeometric t
- hypergeometric :: (Num a, Ord a) => a -> a -> a -> Hypergeometric a
- getM :: Hypergeometric t -> t
- getL :: Hypergeometric t -> t
- getK :: Hypergeometric t -> t
- hypergeometricVar :: (Num a, Ord a, Distribution Hypergeometric a) => a -> a -> a -> RVar a
- hypergeometricVarT :: (Num a, Ord a, Distribution Hypergeometric a) => a -> a -> a -> RVarT m a

# Documentation

data Hypergeometric t Source

Integral t => Distribution Hypergeometric t |

## 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

getM :: Hypergeometric t -> t Source

getL :: Hypergeometric t -> t Source

getK :: Hypergeometric t -> t Source

## Variate Generation

hypergeometricVar :: (Num a, Ord a, Distribution Hypergeometric a) => a -> a -> a -> RVar a Source

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