Learn R Programming

matrixdist (version 1.1.9)

mixture,dph,dph-method: Mixture method for phase-type distributions

Description

Mixture method for phase-type distributions

Usage

# S4 method for dph,dph
mixture(x1, x2, prob)

Value

An object of class dph.

Arguments

x1

An object of class dph.

x2

An object of class dph.

prob

Probability for first object.

Examples

Run this code
dph1 <- dph(structure = "general", dimension = 3)
dph2 <- dph(structure = "general", dimension = 5)
dph_mix <- mixture(dph1, dph2, 0.5)
dph_mix

Run the code above in your browser using DataLab