Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Exponential a = Exp a
- floatingExponential :: (Floating a, Distribution StdUniform a) => a -> RVarT m a
- floatingExponentialCDF :: Real a => a -> a -> Double
- exponential :: Distribution Exponential a => a -> RVar a
- exponentialT :: Distribution Exponential a => a -> RVarT m a
Documentation
newtype Exponential a Source #
A definition of the exponential distribution over the type a
.
models an exponential distribution with mean Exp
mumu
. This can
alternatively be viewed as an exponential distribution with parameter lambda =
1 / mu
.
See also exponential
.
Exp a |
Instances
(Real a, Distribution Exponential a) => CDF Exponential a Source # | |
Defined in Data.Random.Distribution.Exponential cdf :: Exponential a -> a -> Double Source # | |
(Floating a, Distribution StdUniform a) => Distribution Exponential a Source # | |
Defined in Data.Random.Distribution.Exponential |
floatingExponential :: (Floating a, Distribution StdUniform a) => a -> RVarT m a Source #
floatingExponentialCDF :: Real a => a -> a -> Double Source #
exponential :: Distribution Exponential a => a -> RVar a Source #
A random variable which samples from the exponential distribution.
is an exponential random variable with mean exponential
mumu
. 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.
is an exponential random variable with mean exponentialT
mumu
. This can
alternatively be viewed as an exponential random variable with parameter lambda
= 1 / mu
.