#25 (11/29/2023)

Wavelet transforms

Fourier series

In the Fourier series, the Fourier coefficients, Cm, do not contain any information on x
f(x) =

m = − ∞ 
Cm ei m x,     Cm = 1





−∞ 
f(x) ei m x d x.
(1)
wavelet_func.jpg
= wavelet_sinx.jpg×a1
+ wavelet_sin2x.jpg×a2
+ wavelet_sin3x.jpg×a3
+ wavelet_sin4x.jpg×a4

Multi-resolution decomposition

f(0)(x)={4,6,2,14,4,2,6,12}
wavelet_f0.jpg
=
f(1)(x)={5,8,3,9} g(1)(x)={−1,−6,1,−3}
wavelet_f1.jpg + wavelet_g1.jpg
f(2)(x)={6.5, 6.0} g(2)(x)={−1.5,−3.0}
wavelet_f2.jpg + wavelet_g2.jpg
f(3)(x)={6.25} g(3)(x)={0.25}
wavelet_f3.jpg + wavelet_g3.jpg
wavelet_multiresolution.jpg

Multiresolution analysis (Wavelet transforms)

A function, f(0)(x), is defined as a discrete data set as
f(0)(x) =





c0
0 ≤ x < 1
c1
1 ≤ x < 2
:
:
cN−1
N − 1 ≤ x < N
(2)
where N = 2n.
The next level (scale 2) of f(0)(x), f(1)(x) can be defined by replacing two consecutive terms by their averages as

f(1)(x) =





c0(1)
(=(co+c1)/2)
0 ≤ x < 2
c1(1)
(=(c1+c2)/2)
2 ≤ x < 4
:
:
cN/2−1(1)
(=(cN−2+cN−1)/2)
N − 2 ≤ x < N
(3)
An interval where the values remain the same is called a scale. The function, f(0)(x) is a function of scale 1 and the function f(1)(x) is a function of scale 2.
The function with scale 4 is thus defined by
f(2)(x) =





c0(2)
(=(c(1)o+c(1)1)/2)
0 ≤ x < 4
c1(2)
(=(c(1)1+c(1)2)/2)
2 ≤ x < 8
:
:
cN/4−1(2)
(=(c(1)N/2−2+c(1)N/2−1)/2)
N − 4 ≤ x < N
(4)
Finally, the function of scale N is

f(n)(x) = c(n)0
= c(n−1)0 + c(n−1)1

2

,     0 ≤ x < N,
(5)
which is the entire average of f(0)(x).
The inverse of scale is called resolution.

Multi-resolution decomposition

Let the difference between the function of scale 1, f(0)(x), and the function of scale 2, f(1)(x), be denoted as g(1)(x) as

f(0)(x) = g(1)(x) + f(1)(x).
(6)
Similarly,

f(1)(x) = g(2)(x) + f(2)(x).
(7)
and

f(n−1)(x) = g(n)(x) + f(n)(x).
(8)
Therefore, f(0)(x) can be decomposed as

f(0)(x)
=
g(1)(x) + f(1)(x)
(9)
=
g(1)(x) + g(2)(x) + f(2)(x)
(10)
=
g(1)(x) + g(2)(x) + g(3)(x) +f(3)(x)
(11)
:
(12)
=
g(1)(x) + g(2)(x) + g(3)(x) + g(4)(x) + …+ g(n)(x) + f(n)(x).
(13)
This decomposition is called multiscale decomposition which looks similar to Fourier series. However, the amplitude of each component in the Fourier series is uniform while the amplitude of g(i)(x) varies.

Scaling Functions

The Haar scaling function, ϕ(x), is defined as

ϕ(x) =



1
0 ≤ x < 1
0
otherwise
(14)
The function, ϕ(x), above is a function with [0, 1) as a support. Using ϕ(x), the function of scale 1, f(0)(x), can be expressed as

f(0)(x) = N−1

k=0 
ck(0) ϕ(xk),     ck(0) = ck.
(15)
The function of scale 2, f(1)(x), can be expressed as

f(1)(x) = N/2−1

k=0 
ck(1) ϕ(x/2 − k),     ck(1) = c(0)2k+c(0)2k+1

2
.
(16)
The function of scale 4, f(2)(x), can be expressed as

f(2)(x) = N/4−1

k=0 
ck(2) ϕ(x/4 − k),     ck(2) = c(1)2k+c(1)2k+1

2
.
(17)
In general, the function of scale 2j can be expressed as

f(j)(x) = N/2j−1

k=0 
ck(j) ϕ(x/2jk),     ck(j) = c(j−1)2k+c(j−1)2k+1

2
.
(18)
The number, j, when the scale is 2j is called a level.

Orthogonality

The inner product over [0, N) between p(x) and q(x) is define as

(p, q) =
N

0 
p(x) q(x) dx,
(19)
If we define
ϕ(j)k(x) ≡ ϕ
x

2j
k
,
(20)
it follows
k(j), ϕ(j)k) =
N

0 
ϕk(j) (x) ϕk(j) dx = 0,     kk′.
(21)
For each level, j, a linear space spanned by ϕ(j)k(x) is denoted as V(j). The space, V(j), is a linear space of N/2j dimensions with ϕ(j)k(x) as the orthogonal bases.

V(0)V(1)V(2) ⊃ … ⊃ V(n)
(22)

Wavelet

The Haar wavelet mother function is defined as

ψ(x) =



1
0 ≤ x < 1/2
−1
1/2 ≤ x < 1
0
otherwise
(23)
This is a function with [0, 1) as a support. Using this function, the function of scale 1, g(1)(x), can be written as

g(1)(x)
=
f(0)(x) − f(1)(x)
(24)
=








c0(0) − (c0(0) + c1(0))/2
0 ≤ x < 1
c1(0) − (c0(0) + c1(0))/2
1 ≤ x < 2
c2(0) − (c2(0) + c3(0))/2
2 ≤ x < 3
:
:
cN−2(0) − (cN−2(0) + cN−1(0))/2
N−2 ≤ x < N−1
cN−1(0) − (cN−2(0) + cN−2(0))/2
N−1 ≤ x < N
(25)
=










(c0(0)c1(0))/2
0 ≤ x < 1
− (c0(0)c1(0))/2
1 ≤ x < 2
(c2(0)c3(0))/2
2 ≤ x < 3
− (c2(0)c3(0))/2
3 ≤ x < 4
:
:
(cN−1(0)cN−2(0))/2
N−2 ≤ x < N−1
− (cN−1(0)cN−2(0))/2
N−1 ≤ x < N
(26)
=
N/2−1

k=0 
dk(1) ψ
x

2
k
,
(27)
where
dk(1) c(0)2kc(0)2k+1

2
.
(28)
In general,
g(j)(x) = N/2j−1

k=0 
dk(j) ψ
x

2j
k
,
(29)
where
dk(j) c(j−1)2kc(j−1)2k+1

2
.
(30)
The wavelet of level j and position k is defined as

ψk(j)(x) ≡ ψ
x

2j
k
.
(31)
For each level, j, the wavelet functions, {ψk(j)(x)}, k = 0, …, N/2j−1 are orthogonal, i.e.,

k(j), ψk(j)) =
N

0 
ψk(j)(x) ψk(j)(x) dx = 0,     kk′.
(32)
Using the wavelet function, f(0)(x), can be expressed as
f(x)
=
N/2−1

j=1 
g(j)(x) + f(n)(x)
(33)
=
N/2−1

j=1 
N/2j−1

k=1 
dk(j) ψ
x

2j
k
+ f(n)(x)
(34)
=
N/2−1

j=1 
N/2j−1

k=1 
dk(j) ψjk(x) + f(n)(x),
(35)
where
ψjk(x) ≡ ψ
x

2j
k
which is called the wavelet of level j and position k.

Continuous wavelet

The wavelet transform for continous function, f(x), can be defined as
W(b, a) ≡ 1

a



−∞ 
f(x)
-
ψ
 

xa

b

d x
(36)
where ψ(x) is the complex conjugate of a mother wavelet, ψ(x).
The inverse wavelet transform can be defined as
f(x) ≡ 1

Cψ



−∞ 



−∞ 
W(b,a) 1

a
ψ
xa

b

da

a2
d b,
(37)
where
Cψ


−∞ 
|ψ(ω)|2

|ω|
d ω.

Some examples

wavelet_example_1.jpg


source
wavelet_example_2.jpg




File translated from TEX by TTH, version 4.03.
On 27 Nov 2023, 19:25.