-
Notifications
You must be signed in to change notification settings - Fork 0
/
MLP-1HL.tex
52 lines (41 loc) · 1.51 KB
/
MLP-1HL.tex
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
41
42
43
44
45
46
47
48
49
50
51
52
\RequirePackage{luatex85}
\documentclass{standalone}
\usepackage{fontspec, unicode-math}
\setsansfont[Scale=MatchLowercase]{TeX Gyre Heros}
\setmathfont{TeX Gyre Termes Math}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{calc}
\usetikzlibrary{positioning}
\tikzset{
every picture/.style={font={\sffamily\normalsize}, >=stealth},
every pin edge/.style={black}}
\begin{document}
\begin{tikzpicture}[pin distance=6ex, node distance=0.5cm and 2cm,
input/.style={draw, circle},
unit/.style={draw, circle, minimum size=0.75cm}]
\begin{scope}
\node[unit] (HA) {};
\node[unit] (HB) [below=of HA] {};
\node[unit] (HC) [below=of HB] {};
\node[unit] (HD) [below=of HC] {};
\end{scope}
\begin{scope}[pin edge={<-{Circle[open]}}]
\node[input] (IA) [pin=left:$x_{1}$, below left=of HA] {};
\node[input] (IC) [pin=left:$x_{3}$, above left=of HD] {};
\node[input] (IB) at ($(IA)!0.5!(IC)$) [pin=left:$x_{2}$] {};
\end{scope}
\begin{scope}[pin edge={{Circle[open]}->}]
\node (O1) [right=of HA] {};
\node (O2) [right=of HD] {};
\node[unit] (OA) at ($(O1)!0.5!(O2)$) [pin=right:$\hat{y}$] {};
\end{scope}
\path[->] (IA) edge (HA) edge (HB) edge (HC) edge (HD);
\path[->] (IB) edge (HA) edge (HB) edge (HC) edge (HD);
\path[->] (IC) edge (HA) edge (HB) edge (HC) edge (HD);
\path[->] (HA) edge (OA);
\path[->] (HB) edge (OA);
\path[->] (HC) edge (OA);
\path[->] (HD) edge (OA);
\end{tikzpicture}
\end{document}