\HeaderA{wp.object}{Wavelet Packet decomposition objects.}{wp.object}
\keyword{classes}{wp.object}
\keyword{smooth}{wp.object}
\begin{Description}\relax
These are objects of classes \code{wp} They represent a decomposition of a function with respect to a set of wavelet packet functions.
\end{Description}
\begin{Details}\relax
To retain your sanity we recommend that wavelet packets be extracted in one of two ways: 

\textbullet{use \code{\LinkA{getpacket.wp}{getpacket.wp}} to obtain individual packets.}
\textbullet{use \code{\LinkA{accessD.wp}{accessD.wp}} to obtain all coefficients at a particular resolution level.}

You can obtain the coefficients directly from the \code{wp\$wp} component but you have to understand their organization described above.
\end{Details}
\begin{Value}
The following components must be included in a legitimate `wp' object. 
\begin{ldescription}
\item[\code{wp}] a matrix containing the wavelet packet coefficients. Each row of the matrix contains coefficients with respect to a particular resolution level. There are \code{nlevels(wp)+1} rows in the matrix. Row \code{nlevels(wp)+1} (the ``bottom'') row contains the ``original'' data used to produce the wavelet packet coefficients. Rows \code{nlevels}(wp) to row 1 contain coefficients at resolution levels \code{nlevels(wp)-1} to 0 (so the first row contains coefficients at resolution level 0). 

The columns contain the coefficients with respect to packets. A different packet length exists at each resolution level. The packet length at resolution level \code{i} is given by \code{2\textasciicircum{}i}. However, the \code{\LinkA{getpacket.wp}{getpacket.wp}} function should be used to access individual packets from a \code{\LinkA{wp}{wp}} object.
\item[\code{nlevels}] The number of levels in the wavelet packet decomposition. If you raise 2 to the power of nlevels you get the number of data points used in the decomposition. 
\item[\code{filter}] a list containing the details of the filter that did the decomposition (equivalent to the return value from the \code{\LinkA{filter.select}{filter.select}} function). 
\item[\code{date}] The date that the transform was performed or the wp was modified.
\end{ldescription}
\end{Value}
\begin{Section}{GENERATION}
This class of objects is returned from the \code{\LinkA{wp}{wp}} function to represent a wavelet packet decomposition of a function. Many other functions return an object of class wp.
\end{Section}
\begin{Section}{METHODS}
The wp class of objects has methods for the following generic functions: \code{\LinkA{InvBasis}{InvBasis}}, \code{\LinkA{MaNoVe}{MaNoVe}}, \code{\LinkA{accessC}{accessC}}, \code{\LinkA{accessD}{accessD}}, \code{\LinkA{basisplot}{basisplot}}, \code{\LinkA{draw}{draw}}. \code{\LinkA{getpacket}{getpacket}}, \code{\LinkA{nlevels}{nlevels}}, \code{\LinkA{plot}{plot}}, \code{\LinkA{print}{print}}, \code{\LinkA{putC}{putC}}, \code{\LinkA{putD}{putD}}, \code{\LinkA{putpacket}{putpacket}}, \code{\LinkA{summary}{summary}}, \code{\LinkA{threshold}{threshold}}.
\end{Section}
\begin{Section}{RELEASE}
Version 3.5.3 Copyright Guy Nason 1994
\end{Section}
\begin{SeeAlso}\relax
\code{\LinkA{wp}{wp}}
\end{SeeAlso}

