Given \(j, n, t\) are the decomposition level,
oscillation index, and time index, respectively, the DWPT is given by
$$
W_{j,n,t}=\sum_{l=0}^{L-1}u_{n,l}
W_{j-1,\lfloor n/2 \rfloor, 2t + 1 - l\;\bmod N_{j-1}}\mbox{,\qquad}t=0,\ldots,N_j-1,
\]
where $N_j\equiv N / 2^j$ and $\lfloor\cdot\rfloor$ denotes the
integer part.
%
The variable $L$ is the length of the filters defined by
\[
u_{n,l} \equiv \left\{
\begin{array}{ll}
g_l, & \mbox{ if }n \bmod 4=0 \mbox{ or }3; \\
h_l, & \mbox{ if }n \bmod 4=1 \mbox{ or }2,
\end{array}\right.
$$
The variables \(g\) and \(h\) represent the
scaling filter and wavelet filter, respectively. Each filter is of length \(L\).
By definition, \(W_{0,0,t} \equiv X_t\) where
\(\{X_t\}\) is the original time series.