Learn R Programming

mapfit (version 1.0.0)

as.gph: Convert from HErlang to GPH

Description

Convert from hyper-Erlang distribution to the general PH distribution

Usage

as.gph(h)

Value

An instance of GPH

Arguments

h

An instance of HErlang

Examples

Run this code
#' ## create a hyper Erlang with specific parameters
(param <- herlang(shape=c(2,3), mixrate=c(0.3,0.7), rate=c(1.0,10.0)))

## convert to a general PH
as.gph(param)

Run the code above in your browser using DataLab