Advertisement
Guest User

tikzflwochart

a guest
Jan 14th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 2.13 KB | None | 0 0
  1. \end{tikzpicture}
  2. \caption{Projezierter Gradientenabstieg für adversariale Angriffe nach \cite{biggio13}}
  3. \end{figure}
  4.  
  5.  
  6. \begin{figure}
  7. \begin{tikzpicture}[align=center,
  8.  start chain=1 going right,
  9.  node distance=5mm,
  10. ]
  11. \tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, draw=black, fill=red!30]
  12. \tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=1.5cm, minimum height=0.5cm, text centered, draw=black, fill=blue!30]
  13. \tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=orange!30]
  14. \tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30]
  15. \tikzstyle{arrow} = [thick,->,>=stealth]
  16.  
  17.  
  18. \matrix [matrix of nodes,column sep=1em,row sep=5em]
  19. {
  20.  & & |(q) [startstop]| $START$   & & \\
  21.  |(a) [io]| $x_i\,\,adversarial?$ & |(b) [io]| $c_{og}$ & |(c) [io]| $c_{ug}$ & |(d) [io]| $c$ & |(e) [io]| $c_{doppelt}$  \\
  22.  & & |(f) [decision]| $x_i\,\,adversarial?$   & & \\
  23.  & |(h) [process]| $c:=(c+c_{ug})/2$ & & |(w) [process]| $c_{ug}:=c$ & \\
  24.  & |(i) [process]| $c_{doppelt}:=False$ & & |(x) [process]| $c:=c+(c-c_{ug})/2$ & \\
  25.  & & |(k) [io]| $return\,\, c<=c_{og}$ & & \\
  26.  & & |(u) [startstop]| $STOP$   & & \\
  27. };
  28.  
  29.  
  30. \draw [->] (f) -- (h)node[right, midway]{TRUE};
  31. \draw [->] (f) -- (w)node[left, midway]{FALSE};
  32.  
  33.  
  34. { [start chain=tr,every on chain/.style={join=by ->,thick}]
  35.    \chainin (h);
  36.    \chainin (i);
  37.    \chainin (k);
  38. }
  39.  
  40. { [start chain=fa,every on chain/.style={join=by ->,thick}]
  41.    \chainin (w);
  42.    \chainin (x);
  43.    \chainin (k);
  44.    \chainin (u);
  45. }
  46.  
  47. \foreach \n in {a,b,c,d,e} {
  48. \begin{scope} [start chain={\n}-t,every on chain/.style={join=by ->,thick}]
  49.   \chainin (q);
  50.   \chainin ({\n});
  51. \end{scope}
  52.  
  53. }
  54. \foreach \n in {a,b,c,d,e} {
  55. \begin{scope} [start chain={\n}-t,every on chain/.style={join=by ->,thick}]
  56.   \chainin ({\n});
  57.   \chainin (f);
  58. \end{scope}
  59. }
  60.  
  61. \end{tikzpicture}
  62. \caption{Modifizierte Binäre Suche für den Faktor des Zusatzterms nach \cite{carlini17b}}
  63. \end{figure}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement