commit 66b30451f61e5d2ecef7d9a22e01798d33fed043
parent 6236d232c3dc3841d81426c9bcb8f09c1eb07601
Author: Jared Tobin <jared@jtobin.ca>
Date: Mon, 22 Feb 2016 08:59:50 +1300
Add sequential CRP viz.
Diffstat:
1 file changed, 31 insertions(+), 0 deletions(-)
diff --git a/chinese-restaurant-process/doc/images/crp_seq.tex b/chinese-restaurant-process/doc/images/crp_seq.tex
@@ -0,0 +1,31 @@
+\documentclass{standalone}
+\usepackage{tikz}
+\usetikzlibrary{positioning}
+\usetikzlibrary{fit}
+
+\begin{document}
+
+\begin{tikzpicture}
+ \tikzstyle{table}=[circle, thick, draw = black!80, fill = black!10, minimum size = 15mm]
+ \tikzstyle{customer}=[circle, thin, draw = black!80, node distance = 11mm]
+ \tikzstyle{connect}=[-latex, thick]
+
+ \foreach \pos/\table in {1/1, 3.75/2, 6.5/3, 9.25/4}
+ \node[table] (table\table) at (\pos, 0) {$T_{\table}$};
+ \node[draw=none] (ellipsis) at (11, 0) {$\cdots$};
+
+ \foreach \pos/\table/\n/\order in
+ { above left of/table1/1/1
+ , above of/table1/2/3
+ , below left of/table1/3/4
+ , below right of/table1/4/7
+ , above left of/table2/1/2
+ , below right of/table2/2/5
+ , above left of/table3/1/6
+ , below left of/table3/3/8
+ , above left of/table4/1/9
+ }
+ \node[customer, \pos = \table] (c\table\n) {\tiny \order};
+\end{tikzpicture}
+
+\end{document}