AHerlangClass: Hyper-Erlang distribution with a fixed phase

AHerlangClassR Documentation

Hyper-Erlang distribution with a fixed phase

Description

Hyper-Erlang distribution with a fixed phase

Hyper-Erlang distribution with a fixed phase

Details

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

Methods

Public methods


Method mixrate()

Get mixrate

Usage
AHerlangClass$mixrate()
Returns

A vector of mixrate


Method shape()

Get shape

Usage
AHerlangClass$shape()
Returns

A vector of shapes


Method rate()

Get rate

Usage
AHerlangClass$rate()
Returns

A vector of rates


Method new()

Create a hyper-Erlang distribution with fixed phases

Usage
AHerlangClass$new(size, herlang)
Arguments
size

An integer of the number of phases

herlang

An instance of HErlang

Returns

An instance of AHerlang


Method copy()

copy

Usage
AHerlangClass$copy()
Returns

A new instance


Method size()

The number of components

Usage
AHerlangClass$size()
Returns

The number of components


Method df()

Degrees of freedom

Usage
AHerlangClass$df()
Returns

The degrees of freedom


Method moment()

Moments of HErlang

Usage
AHerlangClass$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
AHerlangClass$print(...)
Arguments
...

Others


Method pdf()

PDF

Usage
AHerlangClass$pdf(x, ...)
Arguments
x

A vector of points

...

Others

Returns

A vector of densities.


Method cdf()

CDF

Usage
AHerlangClass$cdf(q, ...)
Arguments
q

A vector of points

...

Others

Returns

A vector of probabilities


Method ccdf()

Complementary CDF

Usage
AHerlangClass$ccdf(q, ...)
Arguments
q

A vector of points

...

Others

Returns

A vector of probabilities


Method sample()

Make a sample

Usage
AHerlangClass$sample(...)
Arguments
...

Others

Returns

A sample of HErlang


Method emfit()

Run EM

Usage
AHerlangClass$emfit(data, options, ...)
Arguments
data

A dataframe

options

A list of options

...

Others


Method init()

Initialize with data

Usage
AHerlangClass$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
AHerlangClass$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


mapfit documentation built on Nov. 22, 2022, 5:05 p.m.