The first step of denoising is the application of filters.Hdenotes the low pass filter, whileGdenotes the high pass filter. For a signalsiwherei= 1,…,2^n,HandGare defined byand

.

Thehjandgjare called filter coefficients. For the Haar wavelets, the above equations simplify to the following:and

since

h0,h1,g0, andg1 are the only non-zero filter coefficients. Note that for the Haar wavelets

and

.

The radicals come from normalizing the father and mother wavelets. In the case of the Haar wavelets, filtering simply averages and differences. The low pass filter does the following to a signal

s= [a, b, c, d, e, f].

The high pass filter applied to

syields.

Thus, the low pass filter computes averages while the high pass filter accomplishes differencing. The process of differencing detects the noise in the signal. If some detail coefficients are small compared to the others, making them zero will not alter the signal too much. If the noise is located in these areas of the signal, denoising will have a positive effect on the signal. The art is to choose a threshold level that will eliminate most of the noise, but preserve the other qualities of the signal.