moment,dph-method {matrixdist}R Documentation

Moment method for discrete phase-type distributions

Description

Moment method for discrete phase-type distributions

Usage

## S4 method for signature 'dph'
moment(x, k = 1)

Arguments

x

An object of class dph.

k

A positive integer (moment order).

Value

The factional moment of the dph object.

Examples

set.seed(123)
obj <- dph(structure = "general", dimension = 3)
moment(obj, 2)

[Package matrixdist version 1.1.9 Index]