Man Scilab

genmarkov
Scilab Function

genmarkov - generates random markov matrix with recurrent and transient classes

Calling Sequence

M=genmarkov(rec,tr)
M=genmarkov(rec,tr,flag)

Parameters

Description

Returns in M a random Markov transition probability matrix with size(rec,1) recurrent classes with rec(1),...rec($) entries respectively and tr transient states.

Examples


//P has two recurrent classes (with 2 and 1 states) 2 transient states
P=genmarkov([2,1],2,'perm')
[perm,rec,tr,indsRec,indsT]=classmarkov(P);
P(perm,perm)
 
  

See Also

classmarkov ,   eigenmarkov ,  

Back