random-variates-0.1.3.0: "Uniform RNG => Non-Uniform RNGs"

Safe HaskellNone
LanguageHaskell2010

Stochastic.Distributions.Discrete

Documentation

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