moment,ph-method {matrixdist}R Documentation

Moment method for phase-type distributions

Description

Moment method for phase-type distributions

Usage

## S4 method for signature '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 underlying ph) object.

Examples

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

[Package matrixdist version 1.1.9 Index]