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

Safe HaskellNone
LanguageHaskell2010

Stochastic.Distributions.Continuous

Documentation

mkUniform :: forall a. RandomGen a => a -> Dist Source

mkExp :: forall a. RandomGen a => a -> Double -> Dist Source

mkNormal :: forall a. RandomGen a => a -> Double -> Double -> Dist Source

mkEmpirical :: forall a. RandomGen a => a -> [Double] -> Dist Source

data Dist Source

Constructors

forall a . RandomGen a => Uniform a 
forall a . RandomGen a => Exponential Double a 
forall a . RandomGen a => Normal Double Double (Maybe Double) a 
forall a . RandomGen a => ChiSquared Int a 
forall a . RandomGen a => Empirical Empirical a 

class ContinuousDistribution g where Source

Minimal complete definition

rand, cdf, cdf', degreesOfFreedom

Methods

rand :: g -> (Double, g) Source

rands :: Int -> g -> ([Double], g) Source

cdf :: g -> Double -> Double Source

cdf' :: g -> Double -> Double Source

pdf :: g -> Double -> Double -> Double Source

degreesOfFreedom :: g -> Int Source