Compare commits

..

2 Commits

Author SHA1 Message Date
14b5bdac91 Minor cleanup 2024-01-08 14:14:20 +01:00
2cab8aa178 Include pre-built figures when \overleaftrue is set 2024-01-08 14:00:54 +01:00

View File

@ -26,10 +26,6 @@
\hyphenation{op-tical net-works semi-conduc-tor IEEE-Xplore} \hyphenation{op-tical net-works semi-conduc-tor IEEE-Xplore}
\newif\ifoverleaf
%\overleaftrue
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Inputs & Global Options % Inputs & Global Options
@ -37,6 +33,18 @@
% %
\newif\ifoverleaf
%\overleaftrue % When enabled, this option allows the document to be compiled
% on overleaf:
% - common.tex is sourced from a different directory
% - TikZ Externalization is disabled
% - Figures are included from pre-build PDFs
%
% Figures
%
\ifoverleaf \ifoverleaf
\input{common.tex} \input{common.tex}
\else \else
@ -45,12 +53,8 @@
\input{lib/latex-common/common.tex} \input{lib/latex-common/common.tex}
\fi \fi
\addbibresource{letter.bib}
\AtBeginBibliography{\footnotesize}
\pgfplotsset{colorscheme/cel} \pgfplotsset{colorscheme/cel}
% TODO
\newcommand{\figwidth}{\columnwidth} \newcommand{\figwidth}{\columnwidth}
\newcommand{\figheight}{0.75\columnwidth} \newcommand{\figheight}{0.75\columnwidth}
@ -67,6 +71,13 @@
}, },
} }
%
% Bibliography
%
\addbibresource{letter.bib}
\AtBeginBibliography{\footnotesize}
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -362,6 +373,10 @@ decoded bits.%
\begin{figure} \begin{figure}
\centering \centering
\ifoverleaf
\includegraphics{figs/letter-figure0.pdf}
\else
\begin{tikzpicture} \begin{tikzpicture}
\begin{axis}[ \begin{axis}[
grid=both, grid=both,
@ -394,6 +409,7 @@ decoded bits.%
\addlegendentry{DFR} \addlegendentry{DFR}
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\fi
\caption{FER, DFR, and BER for $\left( 3, 6 \right)$-regular LDPC code with \caption{FER, DFR, and BER for $\left( 3, 6 \right)$-regular LDPC code with
$n=204, k=102$ \cite[\text{204.33.484}]{mackay}. $n=204, k=102$ \cite[\text{204.33.484}]{mackay}.
@ -427,6 +443,9 @@ optimization process.%
\begin{figure} \begin{figure}
\centering \centering
\ifoverleaf
\includegraphics{figs/letter-figure1.pdf}
\else
\begin{tikzpicture} \begin{tikzpicture}
\begin{axis}[xmin = -1.25, xmax=1.25, \begin{axis}[xmin = -1.25, xmax=1.25,
ymin = -1.25, ymax=1.25, ymin = -1.25, ymax=1.25,
@ -470,9 +489,13 @@ optimization process.%
}; };
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\fi
\vspace{3mm} \vspace{3mm}
\ifoverleaf
\includegraphics{figs/letter-figure2.pdf}
\else
\begin{tikzpicture} \begin{tikzpicture}
\begin{axis}[xmin = -1.25, xmax=1.25, \begin{axis}[xmin = -1.25, xmax=1.25,
ymin = -1.25, ymax=1.25, ymin = -1.25, ymax=1.25,
@ -513,7 +536,7 @@ optimization process.%
\addlegendentry{$\nabla h\left(\tilde{\boldsymbol{x}}\right)$}; \addlegendentry{$\nabla h\left(\tilde{\boldsymbol{x}}\right)$};
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\fi
\caption{Gradients \caption{Gradients
$\nabla L\left(\boldsymbol{y} \mid \tilde{\boldsymbol{x}}\right)$ $\nabla L\left(\boldsymbol{y} \mid \tilde{\boldsymbol{x}}\right)$
and $\nabla h \left( \tilde{\boldsymbol{x}} \right)$ for a repetition and $\nabla h \left( \tilde{\boldsymbol{x}} \right)$ for a repetition
@ -537,6 +560,9 @@ oscillate after a certain number of iterations.%
\begin{figure} \begin{figure}
\centering \centering
\ifoverleaf
\includegraphics{figs/letter-figure3.pdf}
\else
\begin{tikzpicture} \begin{tikzpicture}
\begin{axis}[ \begin{axis}[
grid=both, grid=both,
@ -567,6 +593,7 @@ oscillate after a certain number of iterations.%
\addlegendentry{$\left(\nabla h\right)_1$} \addlegendentry{$\left(\nabla h\right)_1$}
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\fi
\caption{Visualization of component $\left(\tilde{\boldsymbol{x}}\right)_1$ \caption{Visualization of component $\left(\tilde{\boldsymbol{x}}\right)_1$
for a decoding operation for a (3,6) regular LDPC code with for a decoding operation for a (3,6) regular LDPC code with
@ -595,6 +622,9 @@ the probability that a given component was decoded incorrectly.%
\begin{figure}[H] \begin{figure}[H]
\centering \centering
\ifoverleaf
\includegraphics{figs/letter-figure4.pdf}
\else
\begin{tikzpicture} \begin{tikzpicture}
\begin{axis}[ \begin{axis}[
grid=both, grid=both,
@ -610,6 +640,7 @@ the probability that a given component was decoded incorrectly.%
table [col sep=comma, y=p_error]{res/p_error.csv}; table [col sep=comma, y=p_error]{res/p_error.csv};
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\fi
\caption{Probability that a component of the estimated codeword \caption{Probability that a component of the estimated codeword
$\hat{\boldsymbol{c}}\in \mathbb{F}_2^n$ is erroneous for a (3,6) regular $\hat{\boldsymbol{c}}\in \mathbb{F}_2^n$ is erroneous for a (3,6) regular
@ -683,6 +714,9 @@ Again, these parameters were chosen,%
\begin{figure} \begin{figure}
\centering \centering
\ifoverleaf
\includegraphics{figs/letter-figure5.pdf}
\else
\begin{tikzpicture} \begin{tikzpicture}
\begin{axis}[ \begin{axis}[
grid=both, grid=both,
@ -727,6 +761,7 @@ Again, these parameters were chosen,%
\addlegendentry{BER, improved}; \addlegendentry{BER, improved};
\end{axis} \end{axis}
\end{tikzpicture} \end{tikzpicture}
\fi
\caption{FER and BER of proximal decoding \cite{proximal_paper} and the \caption{FER and BER of proximal decoding \cite{proximal_paper} and the
improved algorithm for a $\left( 3, 6 \right)$-regular LDPC code with improved algorithm for a $\left( 3, 6 \right)$-regular LDPC code with
@ -789,4 +824,3 @@ Ministry of Education and Research (BMBF) within the project Open6GHub
\printbibliography \printbibliography
\end{document} \end{document}