Learn R Programming

matrixdist (version 1.1.2)

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

Description

Sum Method for phase type distributions

Usage

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

Arguments

e1

an object of class '>ph.

e2

an object of class '>ph.

Value

An object of class '>ph.

Examples

Run this code
# NOT RUN {
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