convph: Convolution of Continuous Phase-Type Distributions

Description Usage Arguments Examples

View source: R/convph.R

Description

convph is the function allowing convolution between two phase_type object building a new phase_type object.

Usage

1
convph(ph1 = NULL, ph2 = NULL)

Arguments

ph1

cont_phase_type class

ph2

cont_phase_type class.

Examples

1
2
3
4
5
ph1 = PH(matrix(c(-3, 0, 0, 1, -2, 0, 0, 1, -1), ncol = 3), c(0.25,0.25,0.5))
ph2 = PH(matrix(c(-1.5, 0, 0, 1.5, -1, 0, 0, 1, -0.5), ncol = 3), c(0.25,0.25,0.5))

convph(ph1,ph2)
#---

rivasiker/phasty documentation built on June 15, 2021, 9:18 p.m.