artificial-neuron.tex 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{2mm}
  4. \usepackage{amsmath}
  5. \usepackage{tikz}
  6. \usetikzlibrary{shapes, calc, shapes, arrows}
  7. \begin{document}
  8. \begin{preview}
  9. \tikzstyle{inputNode}=[draw,circle,minimum size=10pt,inner sep=0pt]
  10. \tikzstyle{stateTransition}=[->, thick]
  11. \begin{tikzpicture}
  12. \node[draw,circle,minimum size=25pt,inner sep=0pt] (x) at (0,0) {$\Sigma$ $\varphi$};
  13. \node[inputNode] (x0) at (-2, 1.5) {$\tiny x_0$};
  14. \node[inputNode] (x1) at (-2, 0.75) {$\tiny x_1$};
  15. \node[inputNode] (x2) at (-2, 0) {$\tiny x_2$};
  16. \node[inputNode] (x3) at (-2, -0.75) {$\tiny x_3$};
  17. \node[inputNode] (xn) at (-2, -1.75) {$\tiny x_n$};
  18. \draw[stateTransition] (x0) to[out=0,in=120] node [midway, sloped, above=-2] {$w_0$} (x);
  19. \draw[stateTransition] (x1) to[out=0,in=150] node [midway, sloped, above=-2] {$w_1$} (x);
  20. \draw[stateTransition] (x2) to[out=0,in=180] node [midway, sloped, above=-2] {$w_2$} (x);
  21. \draw[stateTransition] (x3) to[out=0,in=210] node [midway, sloped, above=-2] {$w_3$} (x);
  22. \draw[stateTransition] (xn) to[out=0,in=240] node [midway, sloped, above=-2] {$w_n$} (x);
  23. \draw[stateTransition] (x) -- (2,0) node [midway,above=-0.1cm] {};
  24. \draw[dashed] (0,-0.43) -- (0,0.43);
  25. \node (dots) at (-2, -1.15) {$\vdots$};
  26. \end{tikzpicture}
  27. \end{preview}
  28. \end{document}