sim,dph-method {matrixdist}R Documentation

Simulation method for phase-type distributions

Description

Simulation method for phase-type distributions

Usage

## S4 method for signature 'dph'
sim(x, n = 1000)

Arguments

x

An object of class dph.

n

An integer of length of realization.

Value

A realization of independent and identically distributed discrete phase-type variables.

Examples

obj <- dph(structure = "general")
sim(obj, n = 100)

[Package matrixdist version 1.1.9 Index]