1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fittingFunctions.R
\name{noofVisitsDist}
\alias{noofVisitsDist}
\title{return a joint pdf of the number of visits to the various states of the DTMC}
\usage{
noofVisitsDist(markovchain,N,state)
}
\arguments{
\item{markovchain}{a markovchain-class object}
\item{N}{no of steps}
\item{state}{the initial state}
}
\value{
a numeric vector depicting the above described probability density function.
}
\description{
This function would return a joint pdf of the number of visits to
the various states of the DTMC during the first N steps.
}
\details{
This function would return a joint pdf of the number of visits to
the various states of the DTMC during the first N steps.
}
\examples{
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")
}
\author{
Vandit Jain
}
|