Learn R Programming

matrixdist (version 1.1.2)

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

Description

Simulation Method for inhomogeneous phase type distributions

Usage

# S4 method for 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

Run this code
# NOT RUN {
obj <- iph(ph(structure = "general"), gfun = "lognormal", gfun_pars = 2)
sim(obj, n = 100)
# }

Run the code above in your browser using DataLab