Learn R Programming

matrixdist (version 1.1.3)

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 undelying ph) object.

Arguments

x

an object of class ph.

k

a positive integer (moment order).

Examples

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

Run the code above in your browser using DataLab