From d1fc41541c329e5a8207689c5583516f914c917d Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Mon, 17 Apr 2023 20:57:54 +0200 Subject: [PATCH] Added figures --- latex/thesis/chapters/lp_dec_using_admm.tex | 183 +++++++++++++++----- 1 file changed, 144 insertions(+), 39 deletions(-) diff --git a/latex/thesis/chapters/lp_dec_using_admm.tex b/latex/thesis/chapters/lp_dec_using_admm.tex index ed2d95c..9cc72a4 100644 --- a/latex/thesis/chapters/lp_dec_using_admm.tex +++ b/latex/thesis/chapters/lp_dec_using_admm.tex @@ -900,12 +900,6 @@ return $\tilde{\boldsymbol{c}}$ \item rho \item epsilon pri / epslion dual \end{itemize} - \item Weird behavior when allowing c to take on negative values - \begin{itemize} - \item Double check the behavior is directly linked to allowing negative values - \item Maybe something to do with pseudocodewords when not rounding? - \item Not sure if behavior appears due to all zeros assumption not being satisfied - \end{itemize} \item Decoding Performance \begin{itemize} \item FER and BER similar @@ -971,44 +965,155 @@ return $\tilde{\boldsymbol{c}}$ \begin{figure}[H] \centering - \begin{tikzpicture} - \begin{axis}[ - grid=both, - xlabel={$\mu$}, ylabel={\acs{FER}}, - ymode=log, - width=0.6\textwidth, - height=0.45\textwidth, - legend style={at={(0.5,-0.55)},anchor=south}, - ] - \addplot[ForestGreen, densely dashed, mark=*] - table [col sep=comma, x=mu, y=FER, - discard if not={SNR}{2.0},] - {res/admm/ber_2d_20433484.csv}; - \addlegendentry{$E_b / N_0 = \SI{2}{dB}$} - \addplot[RedOrange, densely dashed, mark=*] - table [col sep=comma, x=mu, y=FER, - discard if not={SNR}{3.0},] - {res/admm/ber_2d_20433484.csv}; - \addlegendentry{$E_b / N_0 = \SI{3}{dB}$} - \addplot[NavyBlue, densely dashed, mark=*] - table [col sep=comma, x=mu, y=FER, - discard if not={SNR}{4.0},] - {res/admm/ber_2d_20433484.csv}; - \addlegendentry{$E_b / N_0 = \SI{4}{dB}$} - \end{axis} - \end{tikzpicture} + \begin{subfigure}[c]{0.48\textwidth} + \centering - \caption{Visualization of the relationship between the decoding performance% - \protect\footnotemark{} and the parameter $\mu$} - \label{fig:admm:results} + \begin{tikzpicture} + \begin{axis}[ + grid=both, + xlabel={$\mu$}, ylabel={\acs{FER}}, + ymode=log, + width=\textwidth, + height=0.75\textwidth, + ] + \addplot[ForestGreen, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=mu, y=FER, + discard if not={SNR}{2.0},] + {res/admm/ber_2d_20433484.csv}; + \addplot[RedOrange, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=mu, y=FER, + discard if not={SNR}{3.0},] + {res/admm/ber_2d_20433484.csv}; + \addplot[NavyBlue, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=mu, y=FER, + discard if not={SNR}{4.0},] + {res/admm/ber_2d_20433484.csv}; + \end{axis} + \end{tikzpicture} + \end{subfigure}% + \hfill% + \begin{subfigure}[c]{0.48\textwidth} + \centering + + \begin{tikzpicture} + \begin{axis}[ + grid=both, + xlabel={$\rho$}, ylabel={\acs{FER}}, + ymode=log, + width=\textwidth, + height=0.75\textwidth, + ] + \addplot[ForestGreen, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=rho, y=FER, + discard if not={SNR}{2.0},] + {res/admm/ber_2d_20433484_rho.csv}; + \addplot[RedOrange, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=rho, y=FER, + discard if not={SNR}{3.0},] + {res/admm/ber_2d_20433484_rho.csv}; + \addplot[NavyBlue, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=rho, y=FER, + discard if not={SNR}{4.0},] + {res/admm/ber_2d_20433484_rho.csv}; + \end{axis} + \end{tikzpicture} + \end{subfigure}% + + \begin{subfigure}[t]{\textwidth} + \centering + + \begin{tikzpicture} + \begin{axis}[hide axis, + xmin=10, xmax=50, + ymin=0, ymax=0.4, + legend style={draw=white!15!black,legend cell align=left}] + + \addlegendimage{ForestGreen, line width=1pt, densely dashed, mark=*} + \addlegendentry{$E_b / N_0 = \SI{2}{dB}$} + \addlegendimage{RedOrange, line width=1pt, densely dashed, mark=*} + \addlegendentry{$E_b / N_0 = \SI{3}{dB}$} + \addlegendimage{NavyBlue, line width=1pt, densely dashed, mark=*} + \addlegendentry{$E_b / N_0 = \SI{4}{dB}$} + \end{axis} + \end{tikzpicture} + \end{subfigure} + + \caption{asf} \end{figure}% % -\footnotetext{(3,6) regular \ac{LDPC} code with $n = 204$, $k = 102$ - \cite[\text{204.33.484}]{mackay_enc}; $K=200, \rho=1, \epsilon_\text{pri} = 10^{-5}, - \epsilon_\text{dual} = 10^{-5}$ -}% +%\footnotetext{(3,6) regular \ac{LDPC} code with $n = 204$, $k = 102$ +% \cite[\text{204.33.484}]{mackay_enc}; $K=200, \rho=1, \epsilon_\text{pri} = 10^{-5}, +% \epsilon_\text{dual} = 10^{-5}$ +%}% % +\begin{figure}[H] + \centering + + \begin{subfigure}[c]{0.48\textwidth} + \centering + + \begin{tikzpicture} + \begin{axis}[ + grid=both, + xlabel={$\mu$}, ylabel={Average \# of iterations}, + ymode=log, + width=\textwidth, + height=0.75\textwidth, + ] + \addplot[ForestGreen, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=mu, y=k_avg, + discard if not={rho}{0.5000000000000001},] + {res/admm/mu_rho_kavg_20433484.csv}; + \addlegendentry{$\rho = 0.5$} + \addplot[RedOrange, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=mu, y=k_avg, + discard if not={rho}{1.1000000000000003},] + {res/admm/mu_rho_kavg_20433484.csv}; + \addlegendentry{$\rho = 1.1$} + \addplot[NavyBlue, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=mu, y=k_avg, + discard if not={rho}{1.9000000000000004},] + {res/admm/mu_rho_kavg_20433484.csv}; + \addlegendentry{$\rho = 1.9$} + \end{axis} + \end{tikzpicture} + \end{subfigure}% + \hfill% + \begin{subfigure}[c]{0.48\textwidth} + \centering + + \begin{tikzpicture} + \begin{axis}[ + grid=both, + xlabel={$\rho$}, ylabel={Average \# of iterations}, + ymode=log, + width=\textwidth, + height=0.75\textwidth, + ] + \addplot[ForestGreen, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=rho, y=k_avg, + discard if not={mu}{2.0},] + {res/admm/mu_rho_kavg_20433484.csv}; + \addlegendentry{$\mu = 2$} + \addplot[RedOrange, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=rho, y=k_avg, + discard if not={mu}{5.0},] + {res/admm/mu_rho_kavg_20433484.csv}; + \addlegendentry{$\mu = 5$} + \addplot[NavyBlue, line width=1pt, densely dashed, mark=*] + table [col sep=comma, x=rho, y=k_avg, + discard if not={mu}{9.0},] + {res/admm/mu_rho_kavg_20433484.csv}; + \addlegendentry{$\mu = 9$} + \end{axis} + \end{tikzpicture} + \end{subfigure}% + + \caption{asf} +\end{figure}% + + \begin{figure}[H] \centering