Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Mathematical Functions
Topic: Fourier and Wavelet transforms
See also: invdwt fwt invfwt fwtin fwtinshift fwt2

Function: dwt
Description: dwt computes the Discrete Wavelet Transformation of a vector.

Link:
Usage: y = dwt (x, l, h)
Input:
x n x 1 vector, input data where n has to be a power of 2
l integer, number of father wavelet coefficients, l has to be a power of 2
h m x 1 vector, wavelet basis
Output:
y n x 1 vector, wavelet coefficients

Note:

Example:
library("wavelet")
x =(0:1023)/1023
d = dwt(x, 4, daubechies4)
d

Result:
Contents of d

[   1,]   2.5285
[   2,]   6.5324
[   3,]   10.795
[   4,]   12.144
[   5,]  -3.6494
[   6,] -7.0777e-16
...
[1019,] -8.3267e-17
[1020,] -1.6653e-16
[1021,] -1.3878e-16
[1022,] -1.3878e-16
[1023,] -1.1102e-16
[1024,] -8.3267e-17



(C) MD*TECH Method and Data Technologies, 05.02.2006