Description Usage Arguments Value Examples
View source: R/getStationaryDistribution.R
Calculate the stationary distribution of a markov chain if it exists
1  | getStationaryDistribution(mc.obj, epsilon=0.01, iteration=30, totalProb=0.9)
 | 
mc.obj | 
 Markov chain object created by the 'mc.create' function  | 
epsilon | 
 The threshold for the converging (in cosine). Needed in infinite markov chain. Default to 0.01.  | 
iteration | 
 The max iteration for the approximation algorithm. Needed in infinite markov chain. Default to 30  | 
totalProb | 
 The proportion of information that the approximate distribution contains. Default to 0.9  | 
In the case of finite, returns the stationary distribution. In the case of infinite, returns a list containing an success indicator, converge state count, approximated stationary distribution, and converge transition matrix.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.