Wavelet Toolbox Previous page   Next Page
wpfun

Wavelet packet functions

Syntax

Description

wpfun is a wavelet packet analysis function.

[WPWS,X] = wpfun('wname',NUM,PREC) computes the wavelet packets for a wavelet 'wname' (see wfilters for more information), on dyadic intervals of length 2-PREC.

PREC must be a positive integer. Output matrix WPWS contains the W functions of index from 0 to NUM, stored row-wise as [W0; W1; ... ; WNUM]. Output vector X is the corresponding common X-grid vector.

[WPWS,X] = wpfun('wname',NUM) is equivalent to [WPWS,X] = wpfun('wname',NUM,7).

The computation scheme for wavelet packets generation is easy when using an orthogonal wavelet. We start with the two filters of length 2N, denoted h(n) and g(n), corresponding to the wavelet.

Now by induction let us define the following sequence of functions (Wn(x) , n = 0,1,2,...) by

where W0(x) = (x) is the scaling function and W1(x) = (x) is the wavelet function.

For example for the Haar wavelet we have

and

The equations become

W0(x) = (x) is the haar scaling function and W1(x) = (x) is the haar wavelet, both supported in [0,1].

Then we can obtain W2n by adding two 1/2-scaled versions of Wn with distinct supports [0,1/2] and [1/2,1], and obtain W2n+1 by subtracting the same versions of Wn.

Starting from more regular original wavelets, using a similar construction, we obtain smoothed versions of this system of W-functions, all with support in the interval [0, 2N-1].

Examples

See Also
wavefun, waveinfo

References

Coifman, R.R.; M.V. Wickerhauser (1992), "Entropy-based Algorithms for best basis selection," IEEE Trans. on Inf. Theory, vol. 38, 2, pp. 713-718.

Meyer, Y. (1993), Les ondelettes. Algorithmes et applications, Colin Ed., Paris, 2nd edition. (English translation: Wavelets: Algorithms and applications, SIAM).

Wickerhauser, M.V. (1991), "INRIA lectures on wavelet packet algorithms," Proceedings ondelettes et paquets d'ondes 17-21 June Rocquencourt France, pp. 31-99.

Wickerhauser, M.V. (1994), Adapted wavelet analysis from theory to software algorithms, A.K. Peters.


Previous page  wpdencmp wpjoin Next page

© 1994-2005 The MathWorks, Inc.