Learn R Programming

matrixdist (version 1.1.9)

moment,ph-method: Moment method for phase-type distributions

Description

Moment method for phase-type distributions

Usage

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

Value

The raw moment of the ph (or underlying ph) object.

Arguments

x

An object of class ph.

k

A positive integer (moment order).

Examples

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

Run the code above in your browser using DataLab