summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/7-4-16.ltx
blob: c8f5c197692adfa16b345c973e8cfaf1fd69caa4 (plain)
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
40
%% 
%%  The LaTeX Graphics Companion, 2ed (first printing May 2007)
%% 
%%  Example 7-4-16 on page 489.
%% 
%%  Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss 
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 

\documentclass{ttctexa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{207.83385pt}
\StartShownPreambleCommands
\usepackage[all,dvips]{xy}
\newcommand\Neuron[1]{\POS*+=<1em>[o]+[F]{#1}}
\newcommand\Link[1]{\ar @{-} "#1"}
\newcommand\Out{\ar +/r8mm/}
\newcommand\In{\save +/l9mm/*{}\ar +/r5mm/\restore}
\newgraphescape{O}[1]{!{\Neuron{#1}="#1"\Out}}
\newgraphescape{H}[1]{!{\Neuron{#1}="#1"\Link{A}\Link{B}}}
\newgraphescape{I}[1]{!{\Neuron{#1}\In\Link{a}\Link{b}\Link{c}}}
\StopShownPreambleCommands
\begin{document}
\[\xygraph{!{0;<18mm,0mm>:<0mm,10mm>::}
 [] !O{A}       [d]!O{B}
 [dd]*[left]!U[F]\txt<12mm>{output\\layer}="T"
"A" [u(.5)l]!H{a}
    [d]!H{b}    [d]!H{c}
"T" [l] *[left]!U[F]\txt<12mm>{hidden\\layer}
"a" [ul]!I{t_1}    [d] !I{t_2}    [d] !I{t_3}
    [d] !I{t_4}    [d] !I{t_5}
"T"[ll] *[left]!U[F]\txt<12mm>{input\\layer}
}\]
\end{document}