sim-iph-method: Simulation method for inhomogeneous phase-type distributions

sim,iph-methodR Documentation

Simulation method for inhomogeneous phase-type distributions

Description

Simulation method for inhomogeneous phase-type distributions

Usage

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

Arguments

x

An object of class iph.

n

An integer of length of realization.

Value

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

Examples

obj <- iph(ph(structure = "general"), gfun = "lognormal", gfun_pars = 2)
sim(obj, n = 100)

matrixdist documentation built on Aug. 8, 2023, 5:06 p.m.