Learn R Programming

matrixdist (version 1.1.9)

+,ph,ph-method: Sum method for phase-type distributions

Description

Sum method for phase-type distributions

Usage

# S4 method for ph,ph
+(e1, e2)

Value

An object of class ph.

Arguments

e1

An object of class ph.

e2

An object of class ph.

Examples

Run this code
ph1 <- ph(structure = "general", dimension = 3)
ph2 <- ph(structure = "gcoxian", dimension = 5)
ph_sum <- ph1 + ph2
ph_sum

Run the code above in your browser using DataLab