Learn R Programming

matrixdist (version 1.1.2)

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)

Arguments

x

an object of class '>ph.

k

a positive integer (moment order).

Value

The raw moment of the '>ph (or undelying '>ph) object.

Examples

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

Run the code above in your browser using DataLab