random_structure: Random structure of a phase-type

View source: R/RcppExports.R

random_structureR Documentation

Random structure of a phase-type

Description

Generates random parameters alpha and S of a phase-type distribution of dimension p with chosen structure.

Usage

random_structure(p, structure = "general", scale_factor = 1)

Arguments

p

Dimension of the phase-type.

structure

Type of structure: "general", "hyperexponential", "gerlang", "coxian" or "gcoxian".

scale_factor

A factor that multiplies the sub-intensity matrix.

Value

Random parameters alpha and S of a phase-type.


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