File: genmarkov.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (39 lines) | stat: -rw-r--r-- 960 bytes parent folder | download
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
38
39
.TH genmarkov 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an 
.SH NAME
genmarkov - generates random markov matrix with recurrent and transient classes
.SH CALLING SEQUENCE
.nf
M=genmarkov(rec,tr)
M=genmarkov(rec,tr,flag)
.fi
.SH PARAMETERS
.TP 10
rec
: integer row vector (its dimension is the number of recurrent classes).
.TP 10
tr
: integer (number of transient states)
.TP 10
M
: real Markov matrix. Sum of entries in each row should add to one.
.TP
flag
: string \fV'perm'\fR. If given, a random permutation of the states is done.
.SH DESCRIPTION
Returns in M a random Markov transition probability matrix
with \fVsize(rec,1)\fR recurrent classes with \fVrec(1),...rec($)\fR 
entries respectively and tr transient states.
.SH EXAMPLE
.nf
//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)
.fi
.SH SEE ALSO
classmarkov, eigenmarkov