random-variates-0.1.4.0: "Uniform RNG => Non-Uniform RNGs"
Stochastic.Distribution.Discrete
class DiscreteDistribution g where Source
Minimal complete definition
rand, cdf, cdf', pmf
Methods
rand :: g -> (Int, g) Source
rands :: Int -> g -> ([Int], g) Source
cdf :: g -> Int -> Double Source
cdf' :: g -> Double -> Int Source
pmf :: g -> Int -> Double Source
Instances