sim,ph-method {matrixdist}R Documentation

Simulation method for phase-type distributions

Description

Simulation method for phase-type distributions

Usage

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

Arguments

x

An object of class ph.

n

An integer of length of realization.

Value

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

Examples

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

[Package matrixdist version 1.1.9 Index]