GPHClass | R Documentation |
General phase-type distribution
General phase-type distribution
A continuous distribution dominated by a continuous-time Markov chain. A random time is given by an absorbing time.
alpha()
Get alpha
GPHClass$alpha()
A vector of alpha
Q()
Get Q
GPHClass$Q()
A matrix of Q
xi()
Get xi
GPHClass$xi()
A vector of xi
new()
Create a GPH
GPHClass$new(alpha, Q, xi)
alpha
A vector of initial probability
Q
An infinitesimal generator
xi
An exit rate vector
An instance of GPH
copy()
copy
GPHClass$copy()
A new instance
size()
The number of phases
GPHClass$size()
The number of phases
df()
Degrees of freedom
GPHClass$df()
The degrees of freedom
moment()
Moments of GPH
GPHClass$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()
GPHClass$print(...)
...
Others
pdf()
GPHClass$pdf(x, poisson.eps = 1e-08, ufactor = 1.01, ...)
x
A vector of points
poisson.eps
A value of tolerance error for uniformization
ufactor
A value of uniformization factor
...
Others
A vector of densities.
cdf()
CDF
GPHClass$cdf(x, poisson.eps = 1e-08, ufactor = 1.01, ...)
x
A vector of points
poisson.eps
A value of tolerance error for uniformization
ufactor
A value of uniformization factor
...
Others
A vector of probabilities
ccdf()
Complementary CDF
GPHClass$ccdf(x, poisson.eps = 1e-08, ufactor = 1.01, ...)
x
A vector of points
poisson.eps
A value of tolerance error for uniformization
ufactor
A value of uniformization factor
...
Others
A vector of probabilities
sample()
Make a sample
GPHClass$sample(...)
...
Others
A sample of GPH
emfit()
Run EM
GPHClass$emfit(data, options, ...)
data
A dataframe
options
A list of options
...
Others
init()
Initialize with data
GPHClass$init(data, ...)
data
A dataframe
...
Others
options
A list of options
clone()
The objects of this class are cloneable with this method.
GPHClass$clone(deep = FALSE)
deep
Whether to make a deep clone.
This function provides the values of p.d.f. for PH distribution with the uniformization technique.
This function provides the values of c.d.f. for PH distribution with the uniformization technique.
This function provides the values of complementary c.d.f. for PH distribution with the uniformization technique.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.