17 |
y7 = 150; % pertexunit |
y7 = 150; % pertexunit |
18 |
y8 = 100; |
y8 = 100; |
19 |
|
|
20 |
x0 = 40; |
x0 = 80; |
21 |
x1 = 100; % repunit |
x1 = 140; % repunit |
22 |
x2 = 200; % color |
x2 = 210; % color |
23 |
x3 = 300; % basistex |
x3 = 300; % basistex |
24 |
x4 = 400; % combinerprogs |
x4 = 400; % combinerprogs |
25 |
xl = 500; |
xl = 450; |
26 |
|
|
27 |
vardef drawgrid(expr c, v, nv, w, nw) = |
vardef drawgrid(expr c, v, nv, w, nw) = |
28 |
for i = 0 upto nv: |
for i = 0 upto nv: |
82 |
basistex[1] = (x3,y1-60); |
basistex[1] = (x3,y1-60); |
83 |
|
|
84 |
|
|
85 |
label.urt(btex \hbox{\vbox{\noindent Basis texture\\ probabilities}} etex, (x3, y3)); |
label.urt(btex \hbox to 5cm{\vbox{\noindent Basis texture\\ probabilities}} etex, (x3, y3)); |
86 |
drawgrid((x3, y3), (0,-60), 4, (60,0), 4); |
drawgrid((x3, y3), (0,-60), 4, (60,0), 4); |
87 |
label.lrt(".81", (x3, y3)); |
label.lrt(".81", (x3, y3)); |
88 |
label.lrt(".11", (x3+30, y3-15)); |
label.lrt(".11", (x3+30, y3-15)); |
93 |
drawgrid((x3, y7), (0,-15), 1, (15,0), 1); |
drawgrid((x3, y7), (0,-15), 1, (15,0), 1); |
94 |
texture[1] = (x3,y7); |
texture[1] = (x3,y7); |
95 |
|
|
96 |
label.urt("Combiner programs",(x4,y1)); |
label.urt( |
97 |
|
btex \hbox to 2cm{\vbox{\noindent Combiner\\programs}} etex |
98 |
|
,(x4,y1)); |
99 |
drawgrid((x4, y1), (0,-60), 5, (60,0), 1); |
drawgrid((x4, y1), (0,-60), 5, (60,0), 1); |
100 |
combprogs[1] = (x4, y1-60); |
combprogs[1] = (x4, y1-60); |
101 |
|
|
102 |
label.urt("Combiner params",(x3+50,y5)); |
label.urt(btex \hbox to 2cm{\vbox{\noindent Combiner\\params}} etex,(x3+20,y5)); |
103 |
drawgrid((x3+50, y5), (0,-40), 3, (40,0), 2); |
drawgrid((x3+20, y5), (0,-40), 3, (40,0), 2); |
104 |
|
|
105 |
label.urt("Combiner program", (x4+50, y5)); |
label.urt( |
106 |
drawgrid((x4+50, y5), (0,-10), 1, (60,0), 1); |
btex \hbox to 2cm{\vbox{\noindent Combiner\\program}} etex |
107 |
combprog[1] = (x4+50, y5); |
, (x4, y5)); |
108 |
|
drawgrid((x4, y5), (0,-10), 1, (60,0), 1); |
109 |
|
combprog[1] = (x4, y5); |
110 |
|
|
111 |
|
|
112 |
drawoptions(withpen pencircle scaled 1pt); |
drawoptions(withpen pencircle scaled 1pt); |
113 |
|
|
114 |
% drawarrow hyperparams[1]{-1,-1} ... repunit[1]; |
% drawarrow hyperparams[1]{-1,-1} ... repunit[1]; |
115 |
drawarrow repunit[1]{-1,-1} ... texgen[1]; |
drawarrow repunit[1]{-.5,-1} ... texgen[1]; |
116 |
drawarrow lab[1]{-1,-1} ... colors[1]; |
drawarrow lab[1]{-1,-1} ... colors[1]; |
117 |
drawarrow basistex[1]{-1,-1} ... basistexprobs[1]; |
drawarrow basistex[1]{-1,-1} ... basistexprobs[1]; |
118 |
drawarrow basistexprobs[2]{-1,-1} ... texture[1]; |
drawarrow basistexprobs[2]{-1,-1} ... texture[1]; |