From c282c9f0b25150882042b8ff9e9942a9d3211aba Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Thu, 26 Jan 2023 17:32:49 +0100 Subject: [PATCH] Put paper and own simulation results into same plot --- latex/presentations/midterm/res/ber_paper.csv | 11 ++ .../midterm/sections/examination_results.tex | 119 ++++++++++-------- 2 files changed, 81 insertions(+), 49 deletions(-) create mode 100644 latex/presentations/midterm/res/ber_paper.csv diff --git a/latex/presentations/midterm/res/ber_paper.csv b/latex/presentations/midterm/res/ber_paper.csv new file mode 100644 index 0000000..c20fa5a --- /dev/null +++ b/latex/presentations/midterm/res/ber_paper.csv @@ -0,0 +1,11 @@ +SNR,gamma_0_15,gamma_0_05,gamma_0_01,BP +1,0.3669767287,0.0983527875,0.09440942764,0.06443019397 +1.5,0.3669767287,0.07297050292,0.07602178383,0.03398665526 +2,0.3669767287,0.04854153852,0.05563899358,0.01257341759 +2.5,0.3669767287,0.03099619799,0.03962553082,0.003089064275 +3,0.3669767287,0.01635036356,0.02635975022,0.001038700586 +3.5,0.3669767287,0.007422688173,0.01572148666,0.0001272453028 +4,0.3669767287,0.002980400475,0.008639663866,0 +4.5,0.3669767287,0.001044021313,0.004434697304,0 +5,0.3669767287,0.0003969287889,0.002126155473,0 +5.5,0.3908851459,0.00008863357225,0.0007759378638,0 diff --git a/latex/presentations/midterm/sections/examination_results.tex b/latex/presentations/midterm/sections/examination_results.tex index c696dd4..bc305ae 100644 --- a/latex/presentations/midterm/sections/examination_results.tex +++ b/latex/presentations/midterm/sections/examination_results.tex @@ -9,63 +9,84 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame}[t] \frametitle{Proximal Decoding: Bit Error Rate and Performance} + \vspace*{-0.5cm} \begin{itemize} \item Comparison of simulation \footnote{(3,6) regular LDPC code with $n=204, k=102$ \cite[\text{204.33.484}]{mackay_enc}} with results of Wadayama and Takabe + \end{itemize} - \begin{figure}[H] - \centering + \begin{figure}[H] + \centering - \begin{subfigure}{0.5\textwidth} - \centering + \begin{tikzpicture}[scale=0.5] + \begin{axis}[ + grid=both, grid style={line width=.1pt}, + xlabel={$E_b / N_0$ (dB)}, ylabel={Bit Error Rate}, + ymode=log, +% legend style={at={(0.05,0.05)},anchor=south west}, + legend pos=outer north east, + width=11.5cm, + height=8cm, + ymax=1.2, ymin=0.8e-4, + xtick={1, 2, ..., 5}, + xmin=0.9, xmax=5.6, + legend columns=2, + ] + %\addlegendimage{ForestGreen, mark=*, solid} + %\addlegendentry{proximal, $\gamma = 0.15$} + + %\addlegendimage{NavyBlue, mark=*, solid} + %\addlegendentry{proximal, $\gamma = 0.01$} + % + %\addlegendimage{RedOrange, mark=*, solid} + %\addlegendentry{proximal, $\gamma = 0.05$} + % + %\addlegendimage{Emerald, mark=triangle, densely dashed} + %\addlegendentry{hybrid, $\gamma = 0.15$} + % + %\addlegendimage{RoyalPurple, mark=triangle, densely dashed} + %\addlegendentry{hybrid, $\gamma = 0.01$} + % + %\addlegendimage{red, mark=triangle, densely dashed} + %\addlegendentry{hybrid, $\gamma = 0.05$} + \addplot [ForestGreen, mark=triangle, dashed, line width=1pt] table [x=SNR, y=BER, col sep=comma, + discard if not={gamma}{0.15}, + discard if gt={SNR}{5.5},] + {res/proximal/2d_ber_fer_dfr_20433484.csv}; + \addlegendentry{$\gamma = 0.15$} + \addplot [ForestGreen, mark=*, line width=1pt] table [x=SNR, y=gamma_0_15, col sep=comma] {res/ber_paper.csv}; + \addlegendentry{$\gamma = 0.15$ (Wadayama et al.)} + + \addplot [NavyBlue, mark=triangle, dashed, line width=1pt] table [x=SNR, y=BER, col sep=comma, + discard if not={gamma}{0.01}, + discard if gt={SNR}{5.5},] + {res/proximal/2d_ber_fer_dfr_20433484.csv}; + \addlegendentry{$\gamma = 0.01$} + \addplot [NavyBlue, mark=*, line width=1pt] table [x=SNR, y=gamma_0_01, col sep=comma] {res/ber_paper.csv}; + \addlegendentry{$\gamma = 0.01$ (Wadayama et al.)} + + \addplot [RedOrange, mark=triangle, dashed, line width=1pt] table [x=SNR, y=BER, col sep=comma, + discard if not={gamma}{0.05}, + discard if gt={SNR}{5.5},] + {res/proximal/2d_ber_fer_dfr_20433484.csv}; + \addlegendentry{$\gamma = 0.05$} + \addplot [RedOrange, mark=*, line width=1pt] table [x=SNR, y=gamma_0_05, col sep=comma] {res/ber_paper.csv}; + \addlegendentry{$\gamma = 0.05$ (Wadayama et al.)} - \begin{tikzpicture}[scale=0.45] - \begin{axis}[ - grid=both, - xlabel={$E_b / N_0$ (dB)}, ylabel={Bit Error Rate}, - ymode=log, - legend style={at={(0.05,0.05)},anchor=south west}, - width=11.5cm, - height=8cm, - ytick={0, 1e-1, 1e-2, 1e-3, 1e-4}, - xtick={1, 2, 3, 4, 5}, - ymax=1.2, ymin=0.8e-4, - xmin=0.9, xmax=5.6, - ] - \addplot table [x=SNR, y=BER, col sep=comma, - discard if not={gamma}{0.15}, - discard if gt={SNR}{5.5},] - {res/proximal/2d_ber_fer_dfr_20433484.csv}; - \addlegendentry{$\gamma = 0.15$} - \addplot table [x=SNR, y=BER, col sep=comma, - discard if not={gamma}{0.01}, - discard if gt={SNR}{5.5},] - {res/proximal/2d_ber_fer_dfr_20433484.csv}; - \addlegendentry{$\gamma = 0.01$} - \addplot table [x=SNR, y=BER, col sep=comma, - discard if not={gamma}{0.05}, - discard if gt={SNR}{5.5},] - {res/proximal/2d_ber_fer_dfr_20433484.csv}; - \addlegendentry{$\gamma = 0.05$} - \end{axis} - \end{tikzpicture} - - \caption{Simulation results for $\omega = 0.05, K=100$} - \label{fig:sim_results_prox} - \end{subfigure}% - \begin{subfigure}{0.5\textwidth} - \centering + \addplot [RoyalPurple, mark=*, line width=1pt] table [x=SNR, y=BP, col sep=comma] {res/ber_paper.csv}; + \addlegendentry{BP} - \includegraphics[scale=0.6]{res/ber_paper} - - \caption{Results from ``Proximal Decoding for LDPC Codes''} - \label{fig:paper_results_prox} - \end{subfigure}% - - \end{figure} + \end{axis} + \end{tikzpicture} + + \caption{Simulation results for $\omega = 0.05, K=100$} + \label{fig:sim_results_prox} + \end{figure} + \vspace*{-0.5cm} + \begin{itemize} \item $\mathcal{O}\left(n \right) $ time complexity - same as BP; only multiplication and addition necessary \cite{proximal_paper} \item Measured Performance: $\sim\SI{10000}{}$ frames/s @@ -81,7 +102,7 @@ \setcounter{footnote}{0} \begin{itemize} - \item Analysis of simulation + \item Simulation \footnote{(3,6) regular LDPC code with $n=204, k=102$ \cite[\text{204.33.484}]{mackay_enc}} results for different values of $\gamma$ @@ -1438,7 +1459,7 @@ $\textcolor{KITblue}{\text{Output }\boldsymbol{\tilde{c}}_n\text{ with lowest }d \begin{tikzpicture}[scale=0.6] \begin{axis}[ grid=both, - xlabel={k}, + xlabel={Iterations}, ylabel={Average $\left| \boldsymbol{x}-\boldsymbol{\hat{x}} \right|$}, legend pos=outer north east, ]