bnp

Some older Bayesian nonparametrics research.
git clone git://git.jtobin.io/bnp.git
Log | Files | Refs | README | LICENSE

crp_seq.tex (925B)


      1 \documentclass{standalone}
      2 \usepackage{tikz}
      3 \usetikzlibrary{positioning}
      4 \usetikzlibrary{fit}
      5 
      6 \begin{document}
      7 
      8 \begin{tikzpicture}
      9   \tikzstyle{table}=[circle, thick, draw = black!80, fill = black!10, minimum size = 15mm]
     10   \tikzstyle{customer}=[circle, thin, draw = black!80, node distance = 11mm]
     11   \tikzstyle{connect}=[-latex, thick]
     12 
     13   \foreach \pos/\table in {1/1, 3.75/2, 6.5/3, 9.25/4}
     14     \node[table] (table\table) at (\pos, 0) {$T_{\table}$};
     15   \node[draw=none] (ellipsis) at (11, 0) {$\cdots$};
     16 
     17   \foreach \pos/\table/\n/\order in
     18     { above left of/table1/1/1
     19     , above of/table1/2/3
     20     , below left of/table1/3/4
     21     , below right of/table1/4/7
     22     , above left of/table2/1/2
     23     , below right of/table2/2/5
     24     , above left of/table3/1/6
     25     , below left of/table3/3/8
     26     , above left of/table4/1/9
     27     }
     28     \node[customer, \pos = \table] (c\table\n) {\tiny \order};
     29 \end{tikzpicture}
     30 
     31 \end{document}