ctmc-class | R Documentation |
The S4 class that describes ctmc
(continuous
time Markov chain) objects.
states |
Name of the states. Must be the same of
|
byrow |
TRUE or FALSE. Indicates whether the given matrix is stochastic by rows or by columns |
generator |
Square generator matrix |
name |
Optional character name of the Markov chain |
signature(x = "ctmc")
: method to get the size
signature(.Object = "ctmc")
: initialize
method
signature(object = "ctmc")
: states method.
signature(object = "ctmc")
: method to get the
steady state vector.
signature(x = "ctmc", y = "missing")
: plot method
for ctmc
objects
ctmc
classes are written using S4 classes
Validation method is used to assess whether either columns or rows totals to zero.
Rounding is used up to 5th decimal. If state names are not properly defined
for a generator matrix
, coercing to ctmc
object leads to overriding
states name with artificial "s1", "s2", ... sequence
Introduction to Stochastic Processes with Applications in the Biosciences (2013), David F. Anderson, University of Wisconsin at Madison. Sai Bhargav Yalamanchi, Giorgio Spedicato
generatorToTransitionMatrix
,rctmc
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")
steadyStates(molecularCTMC)
## Not run: plot(molecularCTMC)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.