Daubechies wavelet
The Daubechies wavelets, based on the work of Ingrid Daubechies, are a family of orthogonal wavelets defining a discrete wavelet transform and characterized by a maximal number of vanishing moments for some given support. With each wavelet type of this class, there is a scaling function which generates an orthogonal multiresolution analysis.
Properties
In general the Daubechies wavelets are chosen to have the highest number A of vanishing moments, for given support width 2A. There are two naming schemes in use, DN using the length or number of taps, and dbA referring to the number of vanishing moments. So D4 and db2 are the same wavelet transform.Among the 2A−1 possible solutions of the algebraic equations for the moment and orthogonality conditions, the one is chosen whose scaling filter has extremal phase. The wavelet transform is also easy to put into practice using the fast wavelet transform. Daubechies wavelets are widely used in solving a broad range of problems, e.g. self-similarity properties of a signal or fractal problems, signal discontinuities, etc.
The Daubechies wavelets are not defined in terms of the resulting scaling and wavelet functions; in fact, they are not possible to write down in closed form. The graphs below are generated using the cascade algorithm, a numeric technique consisting of inverse-transforming an appropriate number of times.
scaling and wavelet functions | |||
amplitudes of the frequency spectra of the above functions |
Note that the spectra shown here are not the frequency response of the high and low pass filters, but rather the amplitudes of the continuous Fourier transforms of the scaling and wavelet functions.
Daubechies orthogonal wavelets D2–D20 resp. db1–db10 are commonly used. The index number refers to the number N of coefficients. Each wavelet has a number of zero moments or vanishing moments equal to half the number of coefficients. For example, D2 has one vanishing moment, D4 has two, etc. A vanishing moment limits the wavelets ability to represent polynomial behaviour or information in a signal. For example, D2, with one vanishing moment, easily encodes polynomials of one coefficient, or constant signal components. D4 encodes polynomials with two coefficients, i.e. constant and linear signal components; and D6 encodes 3-polynomials, i.e. constant, linear and quadratic signal components. This ability to encode signals is nonetheless subject to the phenomenon of scale leakage, and the lack of shift-invariance, which raise from the discrete shifting operation during application of the transform. Sub-sequences which represent linear, quadratic signal components are treated differently by the transform depending on whether the points align with even- or odd-numbered locations in the sequence. The lack of the important property of shift-invariance, has led to the development of several different versions of a shift-invariant wavelet transform.
Construction
Both the scaling sequence and the wavelet sequence will here be normalized to have sum equal 2 and sum of squares equal 2. In some applications, they are normalised to have sum, so that both sequences and all shifts of them by an even number of coefficients are orthonormal to each other.Using the general representation for a scaling sequence of an orthogonal discrete wavelet transform with approximation order A,
with N = 2A, p having real coefficients, p = 1 and deg = A − 1, one can write the orthogonality condition as
or equally as
with the Laurent-polynomial
generating all symmetric sequences and Further, P stands for the symmetric Laurent-polynomial
Since
P takes nonnegative values on the segment .
Equation has one minimal solution for each A, which can be obtained by division in the ring of truncated power series in X,
Obviously, this has positive values on.
The homogeneous equation for is antisymmetric about X = 1 and has thus the general solution
with R some polynomial with real coefficients. That the sum
shall be nonnegative on the interval translates into a set of linear restrictions on the coefficients of R. The values of P on the interval are bounded by some quantity maximizing r results in a linear program with infinitely many inequality conditions.
To solve
for p one uses a technique called spectral factorization resp. Fejér-Riesz-algorithm. The polynomial P splits into linear factors
Each linear factor represents a Laurent-polynomial
that can be factored into two linear factors. One can assign either one of the two linear factors to p, thus one obtains 2N possible solutions. For extremal phase one chooses the one that has all complex roots of p inside or on the unit circle and is thus real.
For Daubechies wavelet transform, a pair of linear filters is being used. This pair of filters should have a property which is called as quadrature mirror filter. Solving the coefficient of the linear filter using the quadrature mirror filter property results in the below solution for the coefficient values for filter of order 4.
The scaling sequences of lowest approximation order
Below are the coefficients for the scaling functions for D2-20. The wavelet coefficients are derived by reversing the order of the scaling function coefficients and then reversing the sign of every second one,. Mathematically, this looks like where k is the coefficient index, b is a coefficient of the wavelet sequence and a a coefficient of the scaling sequence. N is the wavelet index, i.e., 2 for D2.D2 | D4 | D6 | D8 | D10 | D12 | D14 | D16 | D18 | D20 |
1 | 0.6830127 | 0.47046721 | 0.32580343 | 0.22641898 | 0.15774243 | 0.11009943 | 0.07695562 | 0.05385035 | 0.03771716 |
1 | 1.1830127 | 1.14111692 | 1.01094572 | 0.85394354 | 0.69950381 | 0.56079128 | 0.44246725 | 0.34483430 | 0.26612218 |
0.3169873 | 0.650365 | 0.89220014 | 1.02432694 | 1.06226376 | 1.03114849 | 0.95548615 | 0.85534906 | 0.74557507 | |
−0.1830127 | −0.19093442 | −0.03957503 | 0.19576696 | 0.44583132 | 0.66437248 | 0.82781653 | 0.92954571 | 0.97362811 | |
−0.12083221 | −0.26450717 | −0.34265671 | −0.31998660 | −0.20351382 | −0.02238574 | 0.18836955 | 0.39763774 | ||
0.0498175 | 0.0436163 | −0.04560113 | −0.18351806 | −0.31683501 | −0.40165863 | −0.41475176 | −0.35333620 | ||
0.0465036 | 0.10970265 | 0.13788809 | 0.1008467 | 6.68194092 × 10−4 | −0.13695355 | −0.27710988 | |||
−0.01498699 | −0.00882680 | 0.03892321 | 0.11400345 | 0.18207636 | 0.21006834 | 0.18012745 | |||
−0.01779187 | −0.04466375 | −0.05378245 | −0.02456390 | 0.043452675 | 0.13160299 | ||||
4.71742793 × 10−3 | 7.83251152 × 10−4 | −0.02343994 | −0.06235021 | −0.09564726 | −0.10096657 | ||||
6.75606236 × 10−3 | 0.01774979 | 0.01977216 | 3.54892813 × 10−4 | −0.04165925 | |||||
−1.52353381 × 10−3 | 6.07514995 × 10−4 | 0.01236884 | 0.03162417 | 0.04696981 | |||||
−2.54790472 × 10−3 | −6.88771926 × 10−3 | −6.67962023 × 10−3 | 5.10043697 × 10−3 | ||||||
5.00226853 × 10−4 | −5.54004549 × 10−4 | −6.05496058 × 10−3 | −0.01517900 | ||||||
9.55229711 × 10−4 | 2.61296728 × 10−3 | 1.97332536 × 10−3 | |||||||
−1.66137261 × 10−4 | 3.25814671 × 10−4 | 2.81768659 × 10−3 | |||||||
−3.56329759 × 10−4 | −9.69947840 × 10−4 | ||||||||
5.5645514 × 10−5 | −1.64709006 × 10−4 | ||||||||
1.32354367 × 10−4 | |||||||||
−1.875841 × 10−5 |
Parts of the construction are also used to derive the biorthogonal Cohen–Daubechies–Feauveau wavelets.
Implementation
While software such as Mathematica supports Daubechies wavelets directly a basic implementation is possible in MATLAB. This implementation uses periodization to handle the problem of finite length signals. Other, more sophisticated methods are available, but often it is not necessary to use these as it only affects the very ends of the transformed signal. The periodization is accomplished in the forward transform directly in MATLAB vector notation, and the inverse transform by using the circshift function:Transform, D4
It is assumed that S, a column vector with an even number of elements, has been pre-defined as the signal to be analyzed. Note that the D4 coefficients are /4.N = length;
s1 = S + sqrt * S;
d1 = S - sqrt / 4 * s1 - / 4 * ;
s2 = s1 - ;
s = / sqrt * s2;
d = - / sqrt * d1;
Inverse transform, D4
d1 = d * );
s2 = s * );
s1 = s2 + circshift;
S = d1 + sqrt / 4 * s1 + / 4 * circshift;
S = s1 - sqrt * S;