dnExponential
- Exponential Distribution
lambda : | RealPos (pass by const reference) |
The rate parameter ( rate = 1/mean ). | |
Default : 1 | |
offset : | RealPos (pass by const reference) |
The offset of the distribution. | |
Default : 0 |
# we set a rate parameter
rate <- 10.0
# we create an exponentially distributed random variable
x ~ dnExponential(lambda=rate)
# compute the probability of the variable
x.probability()