Docsity

Spectral Factorization - Banking - Lecture Slides, Slides of Banking and Finance

Partial preview of the text

Download Spectral Factorization - Banking - Lecture Slides 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

Maxflat

Maxflat Filters:Filters: DaubechiesDaubechies andand

Meyer Formulas.

Meyer Formulas.

Spectral Factorization

Spectral Factorization

2

2

Formulas for the Product Filter

Formulas for the Product Filter

Halfband

Halfband condition:condition:

P(
P(

ω

ω ) + P(

) + P(

ω

ω

π

π ) = 2

Also want P(

Also want P( ω

ω ) to be

) to be lowpasslowpass

and p[n] to be symmetric.

and p[n] to be symmetric.

Daubechies

Daubechies’’ ApproachApproach

Design a polynomial, P(y), of degree 2p

Design a polynomial, P(y), of degree 2p -- 1, such that1, such that

P(0) = 2
P(0) = 2
P
P

(

( l

l )

)

l

l = 1, 2,

= 1, 2, ……, p, p -- 1 1

P
P

(

( l

l )

)

l

l = 0, 1,

= 0, 1, ……, p, p -- 1 1

π

ω 0

2

P (ω)

P (ω+π)

1

y 0

2

P(y)

~

4

4

(1 –– y)y)

-1 1

y

y

k

k

(1 –– y)y)

  • -pp

k = 0

k = 0

k = 0 k = 0

kk

y|

y

Then

Then

P(y) = 2(

P(y) = 2(1 –– y)y)

pp

[(

[(1--y)y)

  • -pp
+ O (
  • O (yy

pp

)]
)]

= 2 + O(yO(y

pp

y

y

kk

p + k

p + k ––1 1

5

5

p + k

p + k -- 1 1

k

k

y

y

k

k

1 -- ee

i

i ω

ω

1 –– ee

-i-iωω

1 –– coscos ω

ω

p-p-1 1

k=0k=

Thus

Thus

P
P

((ll))

l

l = 1, 2,

= 1, 2, …… , p, p--1 1

So we have

So we have

P(y) = 2 (

P(y) = 2 (1--y)y)

pp

Now let

Now let

y = maintains

y = maintains symmetrysymmetry

ThusThus

P(
P(

ω

ω ) = P

) = P

1 – 1 – coscos ωω

1 + cos1 + cos ωω

pp -- 1 1

k = 0

k = 0

p + k + 1p + k + 1

k

k

1 – 1 – coscos ωω

k

k

pp

7

7

Meyer’s Approach

Meyer’s Approach

Work with derivative of P(y):

Work with derivative of P(y):

P

P´´(y) =(y) =

  • CC´´ yy

pp--1 1

(1 ––y)y)

p-p-1 1

So

So

P(y) = 2

P(y) = 2 -- CC´´ ∫

y

y

p-p-1 1

(1--y)y)

p-p-1 1

d y (P(0) = 2)

d y (P(0) = 2)

Then

Then

P(
P(

ω

ω ) = 2

) = 2 -- CC´´

y

y

0

0

1 + coscos ω

ω

pp--1 1

1 –– coscos ω

ω

p

p--1 1

sin

sin ω

ω

d

d ω

ω

ω ω

00

= 2 -- CC´´

1 –– coscos

22

ω

ω

pp--1 1

sin

sin ω

ω

d

d ω

ω

ω

ω

00

i.e. P(

i.e. P( ω

ω ) = 2

) = 2 –– CC

sin

sin

2p-2p-1 1

ω

ω d

d ω

ω

ω ω

0

0

8

8

Spectral Factorization

Spectral Factorization

Recall the

Recall the halfbandhalfband condition for orthogonal filters:condition for orthogonal filters:

z domain:

z domain:

H
H

0

0

(z) H

(z) H

0

0

(z

(z

-1 1

) + H
) + H

0

0

(--z) Hz) H

0

0

(--zz

-1 1

Frequency domain:

Frequency domain:

H
H

0

0

ω

ω )

2

2

H
H

0

0

ω

ω

π

π )

2

2

The product filter for the orthogonal case is

The product filter for the orthogonal case is

P(z) = H

P(z) = H

0

0

(z) H

(z) H

0

0

(z

(z

-1- 1

P(
P(

ω

ω ) =

H
H

0

0

ω

ω )

2

2

P(
P(

ω

ω )

p[n] = h

p[n] = h

00

[n]

[n] ∗

h

h

00

[

[--n]n] ⇒

p[n] = p[

p[n] = p[--n]n]

The spectral factorization problem is the problem

The spectral factorization problem is the problem

of finding H

of finding H

0

0

(z) once P(z) is known.

(z) once P(z) is known.

10

10

Im

Im

Im

Im

z

z

00

z

z

0

0

1 Re

Re

Re

Re

1/z

1/z

00

z

z

0

0

O
O

z

z

0

0

O
O

z

z

0

0

Complex zeros

Complex zeros Real zeros

Real zeros

If the zero z

If the zero z

00

is grouped into the spectral factor H

is grouped into the spectral factor H

00

(z),

(z),

then the zero 1/z

then the zero 1/z

00

must be grouped into H

must be grouped into H

00

(z

(z

-1 1

h

h

00

[n] cannot be symmetric.

[n] cannot be symmetric.

11

11

Daubechies

Daubechies’ choice: Choose H’ choice: Choose H

0

0

(z) such that

(z) such that

(i)

(i) all its zeros are inside or on the unit circle.

all its zeros are inside or on the unit circle.

(ii)

(ii) it is causal.it is causal.

i.e. H

i.e. H

00

(z) is a minimum phase filter.

(z) is a minimum phase filter.

Example:

Example:

P(z)

P(z)

H
H

00

(z)

(z)

(Minimum phase)

(Minimum phase)

H
H

00

(z

(z

-1 1

(Maximum phase)

(Maximum phase)

13

13

Then use logarithms to change multiplication into

Then use logarithms to change multiplication into

addition:

addition:

Q(z) = R(z)

Q(z) = R(z)

R(

R(zz

-1 1

ln

ln Q(z)

Q(z) = ln

ln R(z)

R(z) + ln

ln R(zR(z

-1- 1

Q(z)

Q(z) R(z)

R(z)

R(z

R(z

-1- 1

^
^
^
^
^
^

Take inverse z transforms:

Take inverse z transforms:

q[n] = r[n] + r[

q[n] = r[n] + r[--n]n]

Complex

Complex cepstrumcepstrum

of q[n]

of q[n]

^
^
^
^
^
^

14

14

Example:

Example:

X

X

XX

X X

X

X

R(z) has all its zeros and all its poles inside the unit

R(z) has all its zeros and all its poles inside the unit

circle, so R(z) has all its singularities inside the unit

circle, so R(z) has all its singularities inside the unit

circle. (

circle. (ln0 =ln0 =

, lnln ∞

^
^

R(z)

R(z)

R(z) =

R(z) = lnln R(z)R(z)

^
^

16

16

Algorithm:

Algorithm:

Given the coefficients q[n] of the polynomial Q(z):

Given the coefficients q[n] of the polynomial Q(z):

i.

i. Compute the M

Compute the M--point DFT of q[n] for apoint DFT of q[n] for a

sufficiently large M.

sufficiently large M.

Q[k] =

Q[k] = ∑

q[n]e

q[n]e ; 0

k

k < M< M

ii.

ii. Take the logarithm.

Take the logarithm.

Q[k] =

Q[k] = lnln (Q[k])(Q[k])

iii.

iii. Determine the complexDetermine the complex cepstrumcepstrum of q[n] byof q[n] by

computing the IDFT.

computing the IDFT.

q[n]

q[n]

Q[k]

Q[k] ee

ii

nn

^
^

1

1

MM

^
^

MM

2

2 π

π

nk

nk

^
^

MM -- 1 1

k = 0 k = 0

-i-i

MM

2

2 π

π kn

kn

17

17

iv.

iv. Find the causal part of q[n].Find the causal part of q[n].

v.

v. Determine the DFT of r[n] by computing the

Determine the DFT of r[n] by computing the

exponent of the DFT of r[n].

exponent of the DFT of r[n].

R[k] = exp (R[k]) = exp (

R[k] = exp (R[k]) = exp ( ∑

r[n]e

r[n]e

  • –ii knkn

k

k < M< M

^
^

r[n] =

r[n] =

½ q[0] ; n = 0

q[0] ; n = 0

q[n] ; n > 0

q[n] ; n > 0

0 ; n < 0

0 ; n < 0

^
^
^
^
^
^
^
^

M- M-1 1

k = 0

k = 0

^
^

M

M

^
^

22 ππ