Learn R Programming

matrixdist (version 1.1.9)

moment,dph-method: Moment method for discrete phase-type distributions

Description

Moment method for discrete phase-type distributions

Usage

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

Value

The factional moment of the dph object.

Arguments

x

An object of class dph.

k

A positive integer (moment order).

Examples

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

Run the code above in your browser using DataLab