Learn R Programming

markovchain (version 0.9.5)

is.CTMCirreducible: Check if CTMC is irreducible

Description

This function verifies whether a CTMC object is irreducible

Usage

is.CTMCirreducible(ctmc)

Value

a boolean value as described above.

Arguments

ctmc

a ctmc-class object

Author

Vandit Jain

References

Continuous-Time Markov Chains, Karl Sigman, Columbia University

Examples

Run this code
energyStates <- c("sigma", "sigma_star")
byRow <- TRUE
gen <- matrix(data = c(-3, 3,
                       1, -1), nrow = 2,
              byrow = byRow, dimnames = list(energyStates, energyStates))
molecularCTMC <- new("ctmc", states = energyStates, 
                     byrow = byRow, generator = gen, 
                     name = "Molecular Transition Model")
is.CTMCirreducible(molecularCTMC)

Run the code above in your browser using DataLab