Hyperexponential | R Documentation |
A R6 class to represent a hyperexponential distribution.
See Wikipedia.
probs
Get or set the value of probs
.
rates
Get or set the value of rates
.
new()
New hyperexponential distribution.
Hyperexponential$new(probs, rates)
probs
probabilities (weights), a vector of positive numbers
rates
rate parameters, vector of positive numbers of the same
length as the probs
vector
A Hyperexponential
object.
d()
Density function of the hyperexponential distribution.
Hyperexponential$d(x)
x
vector of positive numbers
The density evaluated at x
.
p()
Cumulative distribution function of the hyperexponential distribution.
Hyperexponential$p(q, lower = TRUE)
q
numeric vector of quantiles
lower
Boolean, whether to deal with the lower tail
The cumulative probabilities corresponding to q
.
q()
Quantile function of the hyperexponential distribution.
Hyperexponential$q(p, lower = TRUE)
p
numeric vector of probabilities
lower
Boolean, whether to deal with the lower tail
The quantiles corresponding to p
.
r()
Sampling from the hyperexponential distribution.
Hyperexponential$r(n)
n
number of simulations
A numeric vector of length n
.
mean()
Mean of the hyperexponential distribution.
Hyperexponential$mean()
The mean of the hyperexponential distribution.
mode()
Mode of the hyperexponential distribution.
Hyperexponential$mode()
The mode of the hyperexponential distribution.
sd()
Standard deviation of the hyperexponential distribution.
Hyperexponential$sd()
The standard deviation of the hyperexponential distribution.
variance()
Variance of the hyperexponential distribution.
Hyperexponential$variance()
The variance of the hyperexponential distribution.
skewness()
Skewness of the hyperexponential distribution.
Hyperexponential$skewness()
The skewness of the hyperexponential distribution.
kurtosis()
Kurtosis of the hyperexponential distribution.
Hyperexponential$kurtosis()
The kurtosis of the hyperexponential distribution.
kurtosisExcess()
Kurtosis excess of the hyperexponential distribution.
Hyperexponential$kurtosisExcess()
The kurtosis excess of the hyperexponential distribution.
clone()
The objects of this class are cloneable with this method.
Hyperexponential$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.