Learn R Programming

matrixdist (version 1.1.9)

sim,ph-method: Simulation method for phase-type distributions

Description

Simulation method for phase-type distributions

Usage

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

Value

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

Arguments

x

An object of class ph.

n

An integer of length of realization.

Examples

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

Run the code above in your browser using DataLab