%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{Writing Decorrelation Weights}
\label{wavpack:write_decorr_weights}
\input{wavpack/algorithms/write_decorrelation_weights}
\begin{figure}[h]
  \includegraphics{wavpack/figures/decorr_weights.pdf}
\end{figure}
\clearpage
For example, given the decorrelation weight values:
\begin{table}[h]
\begin{tabular}{rrrrr}
$p$ & $\textsf{weight}_{p~0}$ & $\textsf{weight}_{p~1}$ &
$\texttt{store\_weight}(\textsf{weight}_{p~0})$ &
$\texttt{store\_weight}(\textsf{weight}_{p~1})$ \\
\hline
0 & 16 & 24 & 2 & 3 \\
1 & 48 & 48 & 6 & 6 \\
2 & 32 & 32 & 4 & 4 \\
3 & 48 & 48 & 6 & 6 \\
4 & 48 & 48 & 6 & 6 \\
\end{tabular}
\end{table}
\par
\noindent
the decorrelation weights subframe is written as:
\begin{figure}[h]
\includegraphics{wavpack/figures/decorr_weights_parse.pdf}
\end{figure}
