Learn R Programming

mapfit (version 1.0.0)

HErlangClass: Hyper-Erlang distribution

Description

Hyper-Erlang distribution

Hyper-Erlang distribution

Arguments

Methods


Method mixrate()

Get mixrate

Usage

HErlangClass$mixrate()

Returns

A vector of mixrate


Method shape()

Get shape

Usage

HErlangClass$shape()

Returns

A vector of shapes


Method rate()

Get rate

Usage

HErlangClass$rate()

Returns

A vector of rates


Method new()

Create a hyper-Erlang distribution

Usage

HErlangClass$new(mixrate, shape, rate)

Arguments

mixrate

A vector of initial probability

shape

A vector of shape parameters

rate

A vector of rate parameters

Returns

An instance of HErlang


Method copy()

copy

Usage

HErlangClass$copy()

Returns

A new instance


Method size()

The number of components

Usage

HErlangClass$size()

Returns

The number of components


Method df()

Degrees of freedom

Usage

HErlangClass$df()

Returns

The degrees of freedom


Method moment()

Moments of HErlang

Usage

HErlangClass$moment(k, ...)

Arguments

k

A value to indicate the degrees of moments. k-th moment

...

Others

Returns

A vector of moments from 1st to k-th moments


Method print()

Print

Usage

HErlangClass$print(...)

Arguments

...

Others


Method pdf()

PDF

Usage

HErlangClass$pdf(x, ...)

Arguments

x

A vector of points

...

Others

Returns

A vector of densities.


Method cdf()

CDF

Usage

HErlangClass$cdf(q, ...)

Arguments

q

A vector of points

...

Others

Returns

A vector of probabilities


Method ccdf()

Complementary CDF

Usage

HErlangClass$ccdf(q, ...)

Arguments

q

A vector of points

...

Others

Returns

A vector of probabilities


Method sample()

Make a sample

Usage

HErlangClass$sample(...)

Arguments

...

Others

Returns

A sample of HErlang


Method emfit()

Run EM

Usage

HErlangClass$emfit(data, options, ...)

Arguments

data

A dataframe

options

A list of options

...

Others


Method init()

Initialize with data

Usage

HErlangClass$init(data, ...)

Arguments

data

A dataframe

...

Others

options

A list of options


Method clone()

The objects of this class are cloneable with this method.

Usage

HErlangClass$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

A mixture of Erlang distributions. A subclass of PH distributions.