File: noofVisitsDist.Rd

package info (click to toggle)
r-cran-markovchain 0.8.5-4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,060 kB
  • sloc: cpp: 2,854; sh: 13; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (3)
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
}