Learn R Programming

modesto (version 0.1.2)

Pt: Tool to computate the transition matrix for a Continuous Time Markov Chain, CTMC.

Description

Pt is used to obtain the transition matrix of a homogeneous continuous time Markov chain for a period of time of t.

Usage

Pt(R, t, epsilon)

Arguments

R

numeric, represents the rate matrix of a CTMC. Default value is 0.

t

numeric, represents the length of time.

epsilon

numeric, represents the error bound of the approximation of P(t). Default values is 0.01.

References

Ross, S, Introduction to Probability Models, Eleven Edition. Academic Press, 2014.

Kulkarni V, Introduction to modeling and analysis of stochastic systems. Second Edition. Springer-Verlag, 2011.

Examples

Run this code
# NOT RUN {
library(modesto)
Pt(matrix(c(0,2,3,0),2,2,byrow=TRUE),t=0.7,epsilon=0.005) # A two states CTMC example
# }

Run the code above in your browser using DataLab