is.accessible | R Documentation |
This function verifies if a state is reachable from another, i.e., if there exists a path that leads to state j leaving from state i with positive probability
is.accessible(object, from, to)
object |
A |
from |
The name of state "i" (beginning state). |
to |
The name of state "j" (ending state). |
It wraps an internal function named reachabilityMatrix
.
A boolean value.
Giorgio Spedicato, Ignacio Cordón
James Montgomery, University of Madison
is.irreducible
statesNames <- c("a", "b", "c")
markovB <- new("markovchain", states = statesNames,
transitionMatrix = matrix(c(0.2, 0.5, 0.3,
0, 1, 0,
0.1, 0.8, 0.1), nrow = 3, byrow = TRUE,
dimnames = list(statesNames, statesNames)
)
)
is.accessible(markovB, "a", "c")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.