mgf,ph-method {matrixdist}R Documentation

Mgf method for phase-type distributions

Description

Mgf method for phase-type distributions

Usage

## S4 method for signature 'ph'
mgf(x, r)

Arguments

x

An object of class ph.

r

A vector of real values.

Value

The mgf of the ph (or underlying ph) object at the given locations.

Examples

set.seed(123)
obj <- ph(structure = "general", dimension = 3)
mgf(obj, 0.4)

[Package matrixdist version 1.1.9 Index]