random-fu-0.2.7.7: Random number generation

Data.Random.Distribution.Exponential

Synopsis

# Documentation

newtype Exponential a Source #

A definition of the exponential distribution over the type a.

Exp mu models an exponential distribution with mean mu. This can alternatively be viewed as an exponential distribution with parameter lambda = 1 / mu.

See also exponential.

Constructors

 Exp a
Instances
 Source # Instance detailsDefined in Data.Random.Distribution.Exponential Methodscdf :: Exponential a -> a -> Double Source # Source # Instance detailsDefined in Data.Random.Distribution.Exponential Methodsrvar :: Exponential a -> RVar a Source #rvarT :: Exponential a -> RVarT n a Source #

exponential :: Distribution Exponential a => a -> RVar a Source #

A random variable which samples from the exponential distribution.

exponential mu is an exponential random variable with mean mu. This can alternatively be viewed as an exponential random variable with parameter lambda = 1 / mu.

exponentialT :: Distribution Exponential a => a -> RVarT m a Source #

A random variable transformer which samples from the exponential distribution.

exponentialT mu is an exponential random variable with mean mu. This can alternatively be viewed as an exponential random variable with parameter lambda = 1 / mu.