herlang-class: Class of hyper Erlang

Description Objects from the Class Slots Methods Note See Also Examples

Description

Parameters for a hyper Erlang.

Objects from the Class

Objects are usually created by a herlang.

Slots

size:

the number of components (hyper Erlang components).

mixrate:

a vector of mixed rates (probability for selecting a component).

shape:

shape parameters for Erlang distributions.

rate:

rate parameters for Erlang distributions.

Methods

ph.moment

signature(ph = "herlang"): ...

Note

This class can be converted to ph.

See Also

Classes ph and cf1.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## create a hyper Erlang consisting of two Erlang
## with shape parameters 2 and 3.
(param1 <- herlang(c(2,3)))

## create a hyper Erlang consisting of two Erlang
## with shape parameters 2 and 3.
(param1 <- herlang(shape=c(2,3)))

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

## convert to a general PH
as(param2, "ph")

## p.d.f. for 0, 0.1, ..., 1
(dherlang(x=seq(0, 1, 0.1), herlang=param2))

## c.d.f. for 0, 0.1, ..., 1
(pherlang(q=seq(0, 1, 0.1), herlang=param2))

## generate 10 samples
(rherlang(n=10, herlang=param2))

mapfit documentation built on May 29, 2017, 3:44 p.m.