
rate
.dhypoexp(x, rate = 1, log = FALSE)
phypoexp(q, rate = 1, lower.tail = TRUE, log.p = FALSE, tailarea = FALSE)
rhypoexp(n = 1, rate = 1)
mgfhypoexp(x, rate = 1, difforder = 0)
length(n) > 1
, the length is
taken to be the number required.TRUE
, probabilities are
$\mathbf{P}(X \le x)$, otherwise $\mathbf{P}(X >
x)$.TRUE
, probabilities $p$ are given
as $\log(p)$.TRUE
, probabilities are given for the
integrated tail area distribution.dhypoexp
gives the density, phypoexp
gives the distribution
function (or the integrated tail area distribution function),
rhypoexp
generates random deviates and mgfhypoexp
gives the
moment-generating function (or its derivative up to the second order)The hypo-exponential distribution is a generalization of the Erlang distribution (a Gamma distribution with an integer-valued shape parameter) and a special case of the phase-type distribution (see References section).
dexp
, dgamma
## Random generation
rhypoexp(10, c(3, 5))
## Mean
mu <- mgfhypoexp(0, c(3, 5), difforder = 1)
## Variance
mgfhypoexp(0, c(3, 5), difforder = 2) - mu^2
Run the code above in your browser using DataLab