Learn R Programming

matrixdist (version 1.1.9)

+,dph,dph-method: Sum method for discrete phase-type distributions

Description

Sum method for discrete phase-type distributions

Usage

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

Value

An object of class dph.

Arguments

e1

An object of class dph.

e2

An object of class dph.

Examples

Run this code
dph1 <- dph(structure = "general", dimension = 3)
dph2 <- dph(structure = "general", dimension = 5)
dph_sum <- dph1 + dph2
dph_sum

Run the code above in your browser using DataLab