%Copyright (C) 2007-2015  Brian Langenberger
%This work is licensed under the
%Creative Commons Attribution-Share Alike 3.0 United States License.
%To view a copy of this license, visit
%http://creativecommons.org/licenses/by-sa/3.0/us/ or send a letter to
%Creative Commons,
%171 Second Street, Suite 300,
%San Francisco, California, 94105, USA.

\subsection{Reading Decorrelation Terms}
\label{wavpack:read_decorrelation_terms}
\input{wavpack/algorithms/read_decorrelation_terms}

\begin{figure}[h]
  \includegraphics{wavpack/figures/decorr_terms.pdf}
\end{figure}

\clearpage

\subsubsection{Reading Decorrelation Terms Example}

\begin{figure}[h]
\includegraphics{wavpack/figures/terms_parse.pdf}
\end{figure}
\begin{center}
{\renewcommand{\arraystretch}{1.25}
\begin{tabular}{>{$}r<{$}>{$}c<{$}>{$}r<{$}|>{$}r<{$}>{$}r<{$}>{$}r<{$}}
\text{decorrelation term}_4 & \leftarrow & 23 - 5 = 18 &
\text{decorrelation delta}_4 & \leftarrow & 2 \\
\text{decorrelation term}_3 & \leftarrow & 23 - 5 = 18 &
\text{decorrelation delta}_3 & \leftarrow & 2 \\
\text{decorrelation term}_2 & \leftarrow & 7 - 5 = 2 &
\text{decorrelation delta}_2 & \leftarrow & 2 \\
\text{decorrelation term}_1 & \leftarrow & 22 - 5 = 17 &
\text{decorrelation delta}_1 & \leftarrow & 2 \\
\text{decorrelation term}_0 & \leftarrow & 8 - 5 = 3 &
\text{decorrelation delta}_0 & \leftarrow & 2 \\
\end{tabular}
\renewcommand{\arraystretch}{1.0}
}
\end{center}
