ee123 digital signal processing

21
M. Lustig, EECS UC Berkeley EE123 Digital Signal Processing Lecture 5C Introduction to Wavelets

Upload: others

Post on 16-Oct-2021

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EE123 Digital Signal Processing

M. Lustig, EECS UC Berkeley

EE123Digital Signal Processing

Lecture 5CIntroduction to Wavelets

Page 2: EE123 Digital Signal Processing

• To get temporal information, use part of the signal around every time point

M. Lustig, EECS UC Berkeley

Time Dependent Fourier Transform

X[n,!) =1X

m=�1x[n+m]w[m]e�j!m

*Also called Short-time Fourier Transform (STFT)

+ DTFT (actually DFT in practice)

Page 3: EE123 Digital Signal Processing

• Can be expressed as a convolution

M. Lustig, EECS UC Berkeley

Another view of STFT

X[n,!) =1X

m=�1x[n+m]w[m]e�j!m

multiply + add

!0

Page 4: EE123 Digital Signal Processing

• Can be expressed as a convolution

M. Lustig, EECS UC Berkeley

Another view of STFT

X[n,!) =1X

m=�1x[n+m]w[m]e�j!m

multiply + add

!1

Page 5: EE123 Digital Signal Processing

M. Lustig, EECS UC Berkeley

Basis functions (Atoms)

Time, s

Fre

qu

en

cy,

Hz

2 4 6 8 10 12 14 16 180

1000

2000

3000

4000

!0

!1

!0

!1

Page 6: EE123 Digital Signal Processing

t

!�t · �! � 1

2

M. Lustig, EECS UC Berkeley

Heisenberg Boxes

• Time-Frequency uncertainty principle http://www.jonasclaesson.com

�t

�!!1

!0

�t

�!

Page 7: EE123 Digital Signal Processing

X[r, k] =L�1X

m=0

x[rR+m]w[m]e�j2⇡km/N

M. Lustig, EECS UC Berkeley

Discrete STFT

optional

tr = 1R = L

k = 2

Page 8: EE123 Digital Signal Processing

X[r, k] =L�1X

m=0

x[rR+m]w[m]e�j2⇡km/N

M. Lustig, EECS UC Berkeley

Discrete STFT

optional

tr = 1R = L

k = 2

k = 1

r = 0

Page 9: EE123 Digital Signal Processing

X[r, k] =L�1X

m=0

x[rR+m]w[m]e�j2⇡km/N

M. Lustig, EECS UC Berkeley

Discrete STFT

optional

tr = 1

k = 2

k = 1

R = L/2

Page 10: EE123 Digital Signal Processing

X[r, k] =L�1X

m=0

x[rR+m]w[m]e�j2⇡km/N

M. Lustig, EECS UC Berkeley

Discrete STFT

optional

tr = 1

k = 2

k = 1

R = L/2r = 0

Page 11: EE123 Digital Signal Processing

M. Lustig, EECS UC Berkeley

From STFT to Wavelets

• Basic Idea:–low-freq changes slowly - fast tracking unimportant

–Fast tracking of high-freq is important in many apps.

–Must adapt Heisenberg box to frequency

• Back to continuous time for a bit.....

Page 12: EE123 Digital Signal Processing

�t

�!

u

M. Lustig, EECS UC Berkeley

From STFT to Wavelets

• Continuous time�t

�!

u

�t

�!

�t

�!

�t

�!

�t

�!

Page 13: EE123 Digital Signal Processing

�t

�!Sf(u,⌦) =

Z 1

�1f(t)w(t� u)e�j⌦tdt

Wf(u, s) =

Z 1

�1f(t)

1ps ⇤(

t� u

s)dt

u

M. Lustig, EECS UC Berkeley

From STFT to Wavelets

• Continuous time�t

�!

u

�t

�!

*Morlet - Grossmann

Page 14: EE123 Digital Signal Processing

Z 1

�1| (t)|2dt = 1

Z 1

�1 (t)dt = 0

M. Lustig, EECS UC Berkeley

From STFT to Wavelets

• The function is called a mother wavelet

Wf(u, s) =

Z 1

�1f(t)

1ps ⇤(

t� u

s)dt

⇒ Band-Pass

⇒ unit norm

Page 15: EE123 Digital Signal Processing

w(t� u)ej⌦t1ps (

t� u

s)

s = 1

⌦los = 3

M. Lustig, EECS UC Berkeley

STFT and Wavelets “Atoms”

STFT Atoms(with hamming window)

Wavelet Atoms

u u

⌦hi

u u

Page 16: EE123 Digital Signal Processing

• Mexican Hat

• Haar

M. Lustig, EECS UC Berkeley

Examples of Wavelets

(t) = (1� t2)e�t2/2

(t) =

8<

:

�1 0 t < 12

1 12 t < 1

0 otherwise

Page 17: EE123 Digital Signal Processing

Wf(u, s) =1ps

Z 1

�1f(t) ⇤(

t� u

s)dt

=�f(t) ⇤ s(t)

(u)

s =1ps (

t

s)

M. Lustig, EECS UC Berkeley

Wavelets Transform

• Can be written as linear filtering

• Wavelet coefficients are a result of bandpass filtering

Page 18: EE123 Digital Signal Processing

M. Lustig, EECS UC Berkeley

Example 2: “Bumpy” Signal

log(s)

u

SombreroWavelet

Page 19: EE123 Digital Signal Processing

M. Lustig, EECS UC Berkeley

Example 2: “Bumpy” Signal

log(s)

u

SombreroWavelet

Page 20: EE123 Digital Signal Processing

M. Lustig, EECS UC Berkeley

Example 2: “Bumpy” Signal

log(s)

u

SombreroWavelet

Page 21: EE123 Digital Signal Processing

M. Lustig, EECS UC Berkeley

Example 2: “Bumpy” Signal

log(s)

u

SombreroWavelet