-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenmodel.html
39 lines (33 loc) · 1.04 KB
/
genmodel.html
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
<pre>
<!--- Autogenerated, do not edit. -->
usage: genmodel [--options] FILENAME
Computes the problem matrix corresponding to graphical statistical models
given by a simplicial complex and levels on the nodes.
Options:
-q, --quiet No output is written to the screen
Input file:
FILENAME.mod Simplicial complex and levels on the nodes
Output file:
FILENAME.mat Matrix file
Example: Consider the problem of 3x3x3 tables with 2-marginals. These
are given by K_3 as the simplicial complex on 3 nodes and with levels
of 3 on each node. In '333.mod' write:
3
3 3 3
3
2 1 2
2 2 3
2 3 1
Calling 'genmodel 333' produces the following file '333.mat':
27 27
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
[...]
1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[...]
1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[...]
</pre>