📚 The CoCalc Library - books, templates and other resources
License: OTHER
\documentclass{article}1\usepackage[pdftex,active,tightpage]{preview}2\setlength\PreviewBorder{2mm}34\usepackage{amsmath}5\usepackage{tikz}6\usetikzlibrary{shapes, calc, shapes, arrows}78\begin{document}9\begin{preview}10\tikzstyle{inputNode}=[draw,circle,minimum size=10pt,inner sep=0pt]11\tikzstyle{stateTransition}=[->, thick]12\begin{tikzpicture}13\node[draw,circle,minimum size=25pt,inner sep=0pt] (x) at (0,0) {$\Sigma$ $\varphi$};1415\node[inputNode] (x0) at (-2, 1.5) {\color{red}$\tiny x_0$};16\node[inputNode] (x1) at (-2, 0.75) {\color{red}$\tiny x_1$};17\node[inputNode] (x2) at (-2, 0) {\color{red}$\tiny x_2$};18\node[inputNode] (x3) at (-2, -0.75) {\color{red}$\tiny x_3$};19\node[inputNode] (xn) at (-2, -1.75) {\color{red}$\tiny x_n$};2021\draw[stateTransition] (x0) to[out=0,in=120] node [midway, sloped, above=-2] {\color{green!40!black}$w_0$} (x);22\draw[stateTransition] (x1) to[out=0,in=150] node [midway, sloped, above=-2] {\color{green!40!black}$w_1$} (x);23\draw[stateTransition] (x2) to[out=0,in=180] node [midway, sloped, above=-2] {\color{green!40!black}$w_2$} (x);24\draw[stateTransition] (x3) to[out=0,in=210] node [midway, sloped, above=-2] {\color{green!40!black}$w_3$} (x);25\draw[stateTransition] (xn) to[out=0,in=240] node [midway, sloped, above=-2] {\color{green!40!black}$w_n$} (x);26\color{blue}27\draw[stateTransition] (x) -- (2,0) node [midway,above=-0.1cm] {};28\draw[dashed] (0,-0.43) -- (0,0.43);29\node (dots) at (-2, -1.15) {$\vdots$};30\end{tikzpicture}31\end{preview}32\end{document}333435