From ae9516d6dfce6b6150cafdb29cf5ba9846855769 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Mon, 13 Feb 2023 22:08:28 +0100 Subject: [PATCH] Removed template figures --- latex/thesis/figures/polar_nbit_decoder.tex | 54 ------------------- .../figures/polar_nbit_encoder_natural.tex | 48 ----------------- 2 files changed, 102 deletions(-) delete mode 100644 latex/thesis/figures/polar_nbit_decoder.tex delete mode 100644 latex/thesis/figures/polar_nbit_encoder_natural.tex diff --git a/latex/thesis/figures/polar_nbit_decoder.tex b/latex/thesis/figures/polar_nbit_decoder.tex deleted file mode 100644 index 08cd341..0000000 --- a/latex/thesis/figures/polar_nbit_decoder.tex +++ /dev/null @@ -1,54 +0,0 @@ -\begin{tikzpicture}[node distance = 1.5cm, auto] -% \def\dist{1.5} -% \def\power{4} - \pgfmathparse{\power-1} - \newcount\powerleq - \let\powerleq\pgfmathresult - \pgfmathparse{int(2^\power)} - \newcount\blocksize - \let\blocksize\pgfmathresult - \pgfmathparse{\blocksize-1} - \newcount\blockleq - \let\blockleq\pgfmathresult - - \foreach \j in {0,...,\powerleq}{ - \pgfmathparse{int(-1*\j-1)} - \let\srow\pgfmathresult - - \pgfmathparse{int(-1*\j)} - \let\drow\pgfmathresult - - \pgfmathparse{int(2^(\j+1))} - \let\ccsize\pgfmathresult - - \pgfmathparse{int(\ccsize/2)} - \let\cchalf\pgfmathresult - - \foreach \i in {0,...,\blockleq}{ - \pgfmathparse{int(mod(\i,\ccsize))} - \let\n\pgfmathresult - - - \ifnum\n<\cchalf - \path (\dist*\drow, \i) edge [dashed] (\dist*\srow, \i+\n); - \path (\dist*\drow, \i) edge [dashed] (\dist*\srow, \i+\n+1); - \else - \pgfmathparse{int(\ccsize * int(\i / \ccsize)) + int(mod(2* (\i + \cchalf), \ccsize) )} - \let\jumpsize\pgfmathresult - \path (\dist*\drow, \i) edge (\dist*\srow, \jumpsize); - \path (\dist*\drow, \i) edge (\dist*\srow, \jumpsize+1); - \fi - } - } - - - \foreach \i in {0,...,\blockleq}{ - \node[draw=none] at (-0.3-\dist*\power, \blockleq-\i) {$y_{\i}$}; - \node[draw=none] at (0.3, \blockleq-\i) {$\hat{u}_{\i}$}; - } - - \foreach \i in {0,...,\power}{ - \node[draw=none] at (-1*\dist*\power+\dist*\i, \blocksize-0.5) {$S_{\i}$}; - } - -\end{tikzpicture} \ No newline at end of file diff --git a/latex/thesis/figures/polar_nbit_encoder_natural.tex b/latex/thesis/figures/polar_nbit_encoder_natural.tex deleted file mode 100644 index 770e857..0000000 --- a/latex/thesis/figures/polar_nbit_encoder_natural.tex +++ /dev/null @@ -1,48 +0,0 @@ -\usetikzlibrary[topaths, calc] - -\begin{tikzpicture}[transform shape] -% \def\dist{1.5} -% \def\power{3} - \pgfmathparse{\power-1} - \newcount\powerleq - \let\powerleq\pgfmathresult - \pgfmathparse{int(2^\power)} - \newcount\blocksize - \let\blocksize\pgfmathresult - \pgfmathparse{\blocksize-1} - \newcount\blockleq - \let\blockleq\pgfmathresult - - - \foreach \j in {0,...,\powerleq}{ - \pgfmathparse{int(\j+1)} - \let\drow\pgfmathresult - - \pgfmathparse{int(2^(\j+1))} - \let\ccsize\pgfmathresult - - \pgfmathparse{int(\ccsize/2)} - \let\cchalf\pgfmathresult - - \foreach \i in {0,...,\blockleq}{ - \pgfmathparse{int(mod(\i,2))} - \let\n\pgfmathresult - - \pgfmathparse{int(\ccsize * int(\i / \ccsize))} - \let\dblock\pgfmathresult - - \pgfmathparse{\dblock + int(mod(\i, \ccsize) / 2) + \cchalf}%(\ccsize * int(\i / \ccsize)) + int(mod(2* (\i + \cchalf), \ccsize)) + 1} - \let\dest\pgfmathresult - \path (\dist*\j, \i) edge (\dist*\drow, \dest); - \ifnum\n=0 - \path (\dist*\j, \i) edge [dashed] (\dist*\drow, \dest-\cchalf); - \fi - } - } - - \foreach \i in {0,...,\blockleq}{ - \node[draw=none] at (-0.3, \blockleq-\i) {$u_{\i}$}; - \node[draw=none] at (\dist*\power+0.3, \blockleq-\i) {$x_{\i}$}; - } - -\end{tikzpicture}