HErlangClass | R Documentation |
Hyper-Erlang distribution
Hyper-Erlang distribution
A mixture of Erlang distributions. A subclass of PH distributions.
mixrate()
Get mixrate
HErlangClass$mixrate()
A vector of mixrate
shape()
Get shape
HErlangClass$shape()
A vector of shapes
rate()
Get rate
HErlangClass$rate()
A vector of rates
new()
Create a hyper-Erlang distribution
HErlangClass$new(mixrate, shape, rate)
mixrate
A vector of initial probability
shape
A vector of shape parameters
rate
A vector of rate parameters
An instance of HErlang
copy()
copy
HErlangClass$copy()
A new instance
size()
The number of components
HErlangClass$size()
The number of components
df()
Degrees of freedom
HErlangClass$df()
The degrees of freedom
moment()
Moments of HErlang
HErlangClass$moment(k, ...)
k
A value to indicate the degrees of moments. k-th moment
...
Others
A vector of moments from 1st to k-th moments
print()
HErlangClass$print(...)
...
Others
pdf()
HErlangClass$pdf(x, ...)
x
A vector of points
...
Others
A vector of densities.
cdf()
CDF
HErlangClass$cdf(q, ...)
q
A vector of points
...
Others
A vector of probabilities
ccdf()
Complementary CDF
HErlangClass$ccdf(q, ...)
q
A vector of points
...
Others
A vector of probabilities
sample()
Make a sample
HErlangClass$sample(...)
...
Others
A sample of HErlang
emfit()
Run EM
HErlangClass$emfit(data, options, ...)
data
A dataframe
options
A list of options
...
Others
init()
Initialize with data
HErlangClass$init(data, ...)
data
A dataframe
...
Others
options
A list of options
clone()
The objects of this class are cloneable with this method.
HErlangClass$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.