R/RcppExports.R
generatorToTransitionMatrix.Rd
The transition matrix of the embedded DTMC is inferred from the CTMC's generator
generatorToTransitionMatrix(gen, byrow = TRUE)
gen | The generator matrix |
---|---|
byrow | Flag to determine if rows (columns) sum to 0 |
Returns the transition matrix.
Introduction to Stochastic Processes with Applications in the Biosciences (2013), David F. Anderson, University of Wisconsin at Madison
Sai Bhargav Yalamanchi
energyStates <- c("sigma", "sigma_star") byRow <- TRUE gen <- matrix(data = c(-3, 3, 1, -1), nrow = 2, byrow = byRow, dimnames = list(energyStates, energyStates)) generatorToTransitionMatrix(gen)#> sigma sigma_star #> sigma 0 1 #> sigma_star 1 0