Docsity

Learning Wavelets & Filter Banks: Scaling Functions & Iterative Refinement Equation, Slides of Banking and Finance

Partial preview of the text

Download Learning Wavelets & Filter Banks: Scaling Functions & Iterative Refinement Equation and more Slides Banking and Finance in PDF only on Docsity!

Course 18.327 and 1.

Course 18.327 and 1.

Wavelets and Filter Banks

Wavelets and Filter Banks

Refinement Equation: Iterative and

Refinement Equation: Iterative and

Recursive Solution Techniques;

Recursive Solution Techniques;

Infinite Product Formula; Filter Bank

Infinite Product Formula; Filter Bank

Approach for Computing Scaling

Approach for Computing Scaling

Functions and Wavelets

Functions and Wavelets

Docsity.co

2

Solution of the Refinement Equation

Solution of the Refinement Equation

φφφφ

φφφφ

(t) = 2

(t) = 2

h

h

00

[k]

[k]

φ

φ φ

φφ

φ φ

φ

(2t

(2t-

-k)

k)

N

N

k = 0

k = 0

First, note that the solution to this equation may not

First, note that the solution to this equation may not always exist! The existence of the solution will depend

always exist! The existence of the solution will depend on the discrete

on the discrete-

-time filter h

time filter h

0

0

[k].

[k].

If the solution does exist, it is unlikely that

If the solution does exist, it is unlikely that

φφφφ

φφφφ

(t) will have

(t) will have

a closed form solution. The solution is also unlikely to

a closed form solution. The solution is also unlikely to be smooth. We will see, however, that if h

be smooth. We will see, however, that if h

00

[n] is FIR with

[n] is FIR with

h

h

00

[n] = 0 outside 0

[n] = 0 outside 0

n

n

N

N

then

then

φ

φ φ

φφ

φ φ

φ

(t) has

(t) has compact support

compact support:

φφ φφφ

φ φ

φ

(t) = 0 outside 0

(t) = 0 outside 0 < t < N

< t < N

Docsity.co

4

Example: suppose h

Example: suppose h

0

0

[k] = {

[k] = {¼

φφφφ

φφφφ

(i+1)(i+1)

(t)

(t)

φφφφ

φφφφ

(i)(i)

(2t) +

(2t) +

φφφφ

φφφφ

(i)

(i)

(2t

(2t –

φφφφ

φφφφ

(i)

(i)

(2t

(2t –

Then

Then

φφφφ

φφφφ

(0)(0)

(t)

(t)

t

t

φ

φ φ

φφ

φ φ

φ

(0)

(0)

(t)

(t)

t

t

φφφφ

φφφφ

(2)(2)

(t)

(t)

t

t

Converges to the hat function on [0, 2]

Converges to the hat function on [0, 2]

φ

φ φ

φφ

φ φ

φ

(3)

(3)

(t)

(t)

t

t

Docsity.co

5

Approach 2

Approach 2

Use recursion

Use recursion

First solve for the values of

First solve for the values of

φφφφ

φφφφ

(t) at integer values of t.

(t) at integer values of t.

Then solve for

Then solve for

φφφφ

φφφφ

(t) at half integer values, then at quarter

(t) at half integer values, then at quarter

integer values and so on.

integer values and so on. This gives us a set of discrete values of the scaling

This gives us a set of discrete values of the scaling function at all dyadic points t = n/

function at all dyadic points t = n/

i

i

At integer points:

At integer points:

φφ φφφ

φ φ

φ

(n) = 2

(n) = 2

h

h

0

0

[k]

[k]

φφφφ

φφφφ

(2n

(2n –

  • k)

k)

N

N

k = 0k = 0

Docsity.co

7

Notice that this is an

Notice that this is an eigenvalue

eigenvalue problem

problem

λΦλΦ λΦλΦ

λΦλΦλΦλΦ

= A

= A

where the eigenvector is the vector of scaling function

where the eigenvector is the vector of scaling function values at integer points and the

values at integer points and the eigenvalue

eigenvalue is

is

λλλλ

λλλλ

Note about normalization:

Note about normalization: Since (A

Since (A -

λ

λ λ

λλ

λ λ

λ

I)

I)

= 0 has a non

= 0 has a non-

-unique solution,

unique solution,

we must choose an appropriate normalization for

we must choose an appropriate normalization for

The correct normalization is

The correct normalization is

φφφφ

φφφφ

(n) = 1

(n) = 1

This comes from the fact that we need to satisfy the

This comes from the fact that we need to satisfy the partition of unity condition,

partition of unity condition,

φφφφ

φφφφ

(x

(x-

-n) = 1.

n) = 1.

n

n

nn

Docsity.co

8

At half integer points:

At half integer points:

φφ φφ

φφφφ

(n/2) = 2

(n/2) = 2

h

h

00

[k]

[k]

φ

φ φ

φφ

φ φ

φ

(n

(n-

-k)

k)

So, for N = 3, we have

So, for N = 3, we have

NN

k = 0k = 0

φφφφ

φφφφ

h

h

0

0

[1] h

[1] h

0

0

[0]

[0]

φ

φ φ

φφφφφ

φφφφ

φφφφ

h

h

0

0

[3] h

[3] h

0

0

[2] h

[2] h

0

0

[1] h

[1] h

00

[0]

[0]

φ

φ φ

φφφφφ

φφφφ

φφφφ

φ

φ φ

φφφφφ

φ

φ φ

φφφφφ

h

h

00

[3] h

[3] h

0

0

[2]

[2]

Docsity.co

10

^

^

φφφφ

φφφφ

22

^

^

i.e.

i.e.

φ

φ φ

φφ

φ φ

φ

) = H

) = H

0

0

ΩΩΩΩ

ΩΩΩΩ

22

ΩΩΩΩΩ

Ω Ω

Ω

= H= H

0

0

ΩΩΩΩ

ΩΩΩΩ

). H

). H

0

0

ΩΩΩΩΩ

Ω Ω

Ω

Ω

Ω Ω

ΩΩΩΩΩ

2

2

4

4

44

φφφφ

φφφφ^

^

oooo

oooo

H

H

0

0

LMNLMN LMNLMN

LMNLMNLMNLMN

j = 1j = 1

ΩΩ ΩΩ

ΩΩΩΩ

2

2

j

j

QU`

QU`

QU`

QUQU

QU`

QU`

QU`

φφφφ

φφφφ ^

^

φφφφ

φφφφ

φφφφ

φφφφ

(t)

(t) dt

dt = 1 (Area is normalized to 1)

= 1 (Area is normalized to 1)

^

^

∫

∫ ∫

∫

∫∫∫∫

∞∞∞∞

∞∞∞∞

−

− −

−−−−− ∞

∞∞∞∞

∞ ∞

∞

Docsity.co

11

So

So

φφ φφ

φφφφ

H

H

0

0

^

^

∞

∞ ∞

∞∞∞∞∞

j = 1j = 1

ΩΩΩΩΩΩΩΩ

22

jj

Infinite Product FormulaInfinite Product Formula

Similarly

Similarly

w(t) = 2

w(t) = 2

h

h

11

[k]

[k]

φ

φ φ

φφ

φ φ

φ

(2t

(2t –

  • k)

k)

leads to

leads to

w(

w(

) = H

) = H

1

1

φ

φ φ

φφ

φ φ

φ

k

k

^

^

^

^

Ω

Ω Ω

ΩΩΩΩΩ

22

ΩΩΩΩ

ΩΩΩΩ

2

2

Desirable properties for H

Desirable properties for H

00

ωωωω

ωωωω

H(0) = 1, so thatH(0) = 1, so that

φφφφ

φφφφ

H(H(

ωωωω

ωωωω

) should decay to zero as

) should decay to zero as

ω

ω ω

ωω

ω ω

ω →

→ π

πππ

ππππ

so that

so that

φ

φ φ

φφ

φ φ

φ

22

d

d

^

^

∫∫ ∫∫

∫∫∫∫

∞∞∞∞

∞∞∞∞

−

− −

−−−−− ∞

∞∞∞∞

∞ ∞

∞

^

^

Docsity.co

13

i.

i. Suppose y

Suppose y

00

[n] =

[n] =

δδδδ

δδδδ

[n] and

[n] and x

x

kk

[n] = 0.

[n] = 0.

Y

Y

00

ωωωω

ωωωω

Y

Y

11

ωωωω

ωωωω

) = Y

) = Y

00

ωωωω

ωωωω

) H

) H

0

0

ωωωωω

ω ω

ω

) = H

) = H

00

ωωωω

ωωωω

Y

Y

22

ωωωω

ωωωω

) = Y

) = Y

11

ωωωω

ωωωω

) H

) H

0

0

ωωωωω

ω ω

ω

) = H

) = H

00

ωωωω

ωωωω

)H

)H

00

ωωωω

ωωωω

Y

Y

33

ωωωω

ωωωω

) = Y

) = Y

22

ωωωω

ωωωω

) H

) H

0

0

ωωωωω

ω ω

ω

) = H

) = H

00

ωωωω

ωωωω

) H

) H

0

0

ωωωω

ωωωω

) H

) H

0

0

ωωωω

ωωωω

After K iterations:

After K iterations:

Y

Y

KK

ωωωωω

ω ω

ω

HH

00

k

k

ωωωω

ωωωω

What happens to the sampling period?

What happens to the sampling period?

Sampling period at input = T

Sampling period at input = T

00

= 1 (say)

= 1 (say)

Sampling period at output = T

Sampling period at output = T

K

K

KK

k=0k=0 KK-

1

Docsity.co

14

K

K

1

1 2

2

KK

K KK

K

^

^

Treat the output as samples of a continuous time

Treat the output as samples of a continuous time signal,

signal, y

y

c

c

(t), with sampling period

(t), with sampling period ½

KK

y

y

K

K

[n] =

[n] =

y

y

cc

(n/2(n/

K

K

Y

Y

K

K

ωωωω

ωωωω

Y

Y

c

c

K

K

ωωωω

ωωωω

π

π π

ππ

π π

π

ωωωω

ωωωω ≤

ππππ

ππππ

Replace 2

Replace 2

KK

ω

ω ω

ωω

ω ω

ω

with

with

Y

Y

c

c

) = Y

) = Y

K

K

HH

00

HH

00

K

K

ππππ

ππππ ≤

KK

ππππ

ππππ

So

So

lim Y

lim Y

c

c

H

H

0

0

φφφφ

φφφφ

K

K

(t) is chosen to be

(t) is chosen to be bandlimited

bandlimited)

(y

y

cc

kk

K

K

^

^

K

K-

1

k=

k=

KK-

-k

k

jj

KK

j=1j=

k

k

→∞→∞→∞→∞

→∞→∞→∞→∞

^

^

K

K

∞

∞ ∞

∞∞∞∞∞

j=

j=

j

j

^

^

Docsity.co

16

Support of the Scaling Function

Support of the Scaling Function

y

y

k

k-

1

[n]

[n]

v[n]

v[n]

h

h

00

[n]

[n]

y

y

kk

[n]

[n]

length {v[n]} = 2

length {v[n]} = 2 •

  • length {

length {y

y

kk-

1

[n]}

[n]} -

Suppose that

Suppose that

h

h

0

0

[n] = 0 for n

[n] = 0 for n

0 and n

0 and n

N

N

length {

length {y

y

kk

[n]} = length {v[n]} + length {h[n]} = length {v[n]} + length {h

0

0

[n]}

[n]} –

  • length {

length {y

y

KK-

1

[n]} + N

[n]} + N –

Solve the recursion with length {y

Solve the recursion with length {y

00

[n]} = 1

[n]} = 1

So

So

length {

length {y

y

kk

[n]} = (

[n]} = (

K

K

–1)N + 1

1)N + 1

Docsity.co

17

i.e. length {

i.e. length {y

y

c

c

(t)} = T

(t)} = T

KK

. length { . length {y

y

KK

[n]}

[n]}

= N

= N -

lim

lim K

K

length {

length {

φφφφ

φφφφ

(t)} = N

(t)} = N

So the scaling function is supported on the interval [0, N]

So the scaling function is supported on the interval [0, N]

K

K

(2(

KK

      1. N + 1
  1. N + 1

22

KK

NN-

1

2

2

KK

t

t

N

N

φφφφ

φφφφ

(t)(t)

Docsity.co

Matlab

Matlab Example 6

Example 6

Generation of orthogonal scaling

Generation of orthogonal scaling

functions and waveletsfunctions and wavelets

MATLAB M-file

MATLAB M-file

Docsity.co

20

By Inverse DWT

By Inverse DWT

Docsity.co