random-variates-0.1.4.0: "Uniform RNG => Non-Uniform RNGs"
Stochastic.Distributions.Continuous
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
Instances
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