Debian Codegraph @

texmf-dist/doc/latex/tikz-bayesnet/model_pca.tex

raw
1 % model_pca.tex
2 %
3 % Copyright (C) 2012 Jaakko Luttinen
4 %
5 % This file may be distributed and/or modified
6 %
7 % 1. under the LaTeX Project Public License and/or
8 % 2. under the GNU General Public License.
9 %
10 % See the files LICENSE_LPPL and LICENSE_GPL for more details.
11
12 % PCA model
13
14 %\beginpgfgraphicnamed{model-pca}
15 \begin{tikzpicture}
16
17 % Define nodes
18 \node[obs] (y) {$y$};
19 \node[latent, above=of y, xshift=-1.2cm] (w) {$\mathbf{w}$};
20 \node[latent, above=of y, xshift=1.2cm] (x) {$\mathbf{x}$};
21 \node[latent, right=2cm of y] (t) {$\tau$};
22
23 % Connect the nodes
24 \edge {x,w,t} {y} ; %
25
26 % Plates
27 \plate {yx} {(x)(y)} {$N$} ;
28 \plate {} {(w)(y)(yx.north west)(yx.south west)} {$M$} ;
29
30 \end{tikzpicture}
31 %\endpgfgraphicnamed
32
33 %%% Local Variables:
34 %%% mode: tex-pdf
35 %%% TeX-master: "example"
36 %%% End: