Scilab-Branch-5.3-GIT
- Aide Scilab
- Algèbre Lineaire
- bdiag
- chfact
- chol
- chsolve
- cmb_lin
- coff
- colcomp
- companion
- cond
- det
- expm
- fullrf
- fullrfk
- givens
- glever
- gspec
- hess
- householder
- inv
- kernel
- linsolve
- lu
- lyap
- nlev
- orth
- pbig
- pinv
- polar
- proj
- qr
- range
- rank
- rcond
- rowcomp
- spec
- sqroot
- squeeze
- sva
- svd
- trace
- aff2ab
- balanc
- classmarkov
- eigenmarkov
- ereduc
- fstair
- genmarkov
- gschur
- im_inv
- kroneck
- lsq
- pencan
- penlaur
- projspec
- psmall
- quaskro
- randpencil
- rankqr
- rowshuff
- rref
- schur
- spaninter
- spanplus
- spantwo
- sylv
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
genmarkov
generates random markov matrix with recurrent and transient classes
Calling Sequence
M=genmarkov(rec,tr) M=genmarkov(rec,tr,flag)
Arguments
- rec
integer row vector (its dimension is the number of recurrent classes).
- tr
integer (number of transient states)
- M
real Markov matrix. Sum of entries in each row should add to one.
- flag
string
'perm'
. If given, a random permutation of the states is done.
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 — recurrent and transient classes of Markov matrix
- eigenmarkov — normalized left and right Markov eigenvectors
<< fstair | Algèbre Lineaire | gschur >> |