View source: R/fittingFunctions.R
noofVisitsDist | R Documentation |
This function would return a joint pdf of the number of visits to the various states of the DTMC during the first N steps.
noofVisitsDist(markovchain,N,state)
markovchain |
a markovchain-class object |
N |
no of steps |
state |
the initial state |
This function would return a joint pdf of the number of visits to the various states of the DTMC during the first N steps.
a numeric vector depicting the above described probability density function.
Vandit Jain
transMatr<-matrix(c(0.4,0.6,.3,.7),nrow=2,byrow=TRUE)
simpleMc<-new("markovchain", states=c("a","b"),
transitionMatrix=transMatr,
name="simpleMc")
noofVisitsDist(simpleMc,5,"a")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.