generatorToTransitionMatrix: Function to obtain the transition matrix from the generator.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/RcppExports.R

Description

The transition matrix of the embedded DTMC is inferred from the CTMC's generator.

Usage

1

Arguments

gen

The generator matrix.

byrow

Flag to determine if rows (columns) sum to 0.

Value

Returns the transition matrix.

Author(s)

Sai Bhargav Yalamanchi

References

Introduction to Stochastic Processes with Applications in the Biosciences (2013), David F. Anderson, University of Wisconsin at Madison

See Also

rctmc,ctmc-class

Examples

1
2
3
4
5
6
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)

Example output

Package:  markovchain
Version:  0.6.9.8-1
Date:     2017-08-15
BugReport: http://github.com/spedygiorgio/markovchain/issues

           sigma sigma_star
sigma          0          1
sigma_star     1          0

markovchain documentation built on June 30, 2018, 5:01 p.m.