5: filters - faculty of engineering | imperial college · pdf file•minimum phase +...

141
5: Filters 5: Filters Difference Equations FIR Filters FIR Symmetries + IIR Frequency Response Negating z + Cubing z + Scaling z + Low-pass filter + Allpass filters + Group Delay + Minimum Phase + Linear Phase Filters Summary MATLAB routines DSP and Digital Filters (2017-10159) Filters: 5 – 1 / 15

Upload: hakhuong

Post on 01-Feb-2018

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

5: Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 1 / 15

Page 2: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

Page 3: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

(1) Always causal.

Page 4: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.

Page 5: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.

Page 6: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.(3) We assume that a[0] = 1

Page 7: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

⇔ a[n] ∗ y[n] = b[n] ∗ x[n]

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.(3) We assume that a[0] = 1

Page 8: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

⇔ a[n] ∗ y[n] = b[n] ∗ x[n]

⇔ Y (z) = B(z)A(z)X(z)

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.(3) We assume that a[0] = 1

Page 9: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

⇔ a[n] ∗ y[n] = b[n] ∗ x[n]

⇔ Y (z) = B(z)A(z)X(z)

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.(3) We assume that a[0] = 1; if not, divide A(z) and B(z) by a[0].

Page 10: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

⇔ a[n] ∗ y[n] = b[n] ∗ x[n]

⇔ Y (z) = B(z)A(z)X(z)

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.(3) We assume that a[0] = 1; if not, divide A(z) and B(z) by a[0].(4) Filter is BIBO stable iff roots of A(z) all lie within the unit circle.

Page 11: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

⇔ a[n] ∗ y[n] = b[n] ∗ x[n]

⇔ Y (z) = B(z)A(z)X(z)

⇔ Y (ejω) = B(ejω)A(ejω)X(ejω)

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.(3) We assume that a[0] = 1; if not, divide A(z) and B(z) by a[0].(4) Filter is BIBO stable iff roots of A(z) all lie within the unit circle.

Page 12: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Difference Equations

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 2 / 15

Most useful LTI systems can be described bya difference equation:

y[n] =∑M

r=0 b[r]x[n− r]−∑Nr=1 a[r]y[n− r]

⇔ ∑Nr=0 a[r]y[n− r] =

∑Mr=0 b[r]x[n− r] with a[0] = 1

⇔ a[n] ∗ y[n] = b[n] ∗ x[n]

⇔ Y (z) = B(z)A(z)X(z)

⇔ Y (ejω) = B(ejω)A(ejω)X(ejω)

(1) Always causal.(2) Order of system is max(M,N), the highest r with a[r] 6= 0 orb[r] 6= 0.(3) We assume that a[0] = 1; if not, divide A(z) and B(z) by a[0].(4) Filter is BIBO stable iff roots of A(z) all lie within the unit circle.

Note negative sign in first equation.Authors in some SP fields reverse the sign of the a[n]: BAD IDEA.

Page 13: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).

Page 14: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Page 15: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Frequency response is B(ejω) and is the DTFT of b[n].

Page 16: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Frequency response is B(ejω) and is the DTFT of b[n].Comprises M complex sinusoids + const:

b[0] + b[1]e−jω + · · ·+ b[M ]e−jMω

Page 17: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Frequency response is B(ejω) and is the DTFT of b[n].Comprises M complex sinusoids + const:

b[0] + b[1]e−jω + · · ·+ b[M ]e−jMω

Small M⇒response contains only low “quefrencies”

M=4

0 1 2 30

0.5

1

ω

Page 18: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Frequency response is B(ejω) and is the DTFT of b[n].Comprises M complex sinusoids + const:

b[0] + b[1]e−jω + · · ·+ b[M ]e−jMω

Small M⇒response contains only low “quefrencies”

Symmetrical b[n]⇒H(ejω)ejMω

2 consists of M2 cosine waves [+ const]

M=4

0 1 2 30

0.5

1

ω

Page 19: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Frequency response is B(ejω) and is the DTFT of b[n].Comprises M complex sinusoids + const:

b[0] + b[1]e−jω + · · ·+ b[M ]e−jMω

Small M⇒response contains only low “quefrencies”

Symmetrical b[n]⇒H(ejω)ejMω

2 consists of M2 cosine waves [+ const]

M=4 M=14

0 1 2 30

0.5

1

ω0 1 2 3

0

0.5

1

ω

Page 20: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Frequency response is B(ejω) and is the DTFT of b[n].Comprises M complex sinusoids + const:

b[0] + b[1]e−jω + · · ·+ b[M ]e−jMω

Small M⇒response contains only low “quefrencies”

Symmetrical b[n]⇒H(ejω)ejMω

2 consists of M2 cosine waves [+ const]

M=4 M=14 M=24

0 1 2 30

0.5

1

ω0 1 2 3

0

0.5

1

ω0 1 2 3

0

0.5

1

ω

Page 21: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 3 / 15

A(z) = 1: Finite Impulse Response (FIR) filter: Y (z) = B(z)X(z).Impulse response is b[n] and is of length M + 1.

Frequency response is B(ejω) and is the DTFT of b[n].Comprises M complex sinusoids + const:

b[0] + b[1]e−jω + · · ·+ b[M ]e−jMω

Small M⇒response contains only low “quefrencies”

Symmetrical b[n]⇒H(ejω)ejMω

2 consists of M2 cosine waves [+ const]

M=4 M=14 M=24

0 1 2 30

0.5

1

ω0 1 2 3

0

0.5

1

ω0 1 2 3

0

0.5

1

ω

Rule of thumb: Fastest possible transition ∆ω ≥ 2πM

(marked line)

Page 22: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Symmetries +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 4 / 15

B(ejω) is determined by the zeros of zMB(z) =∑M

r=0 b[M − r]zr

Page 23: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Symmetries +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 4 / 15

B(ejω) is determined by the zeros of zMB(z) =∑M

r=0 b[M − r]zr

Real b[n] ⇒ conjugate zero pairs: z ⇒ z∗

Real:[1, −1.28, 0.64]

-1 0 1

-1

-0.5

0

0.5

1

z

-2 0 20

1

2

ω (rad/sample)

Page 24: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Symmetries +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 4 / 15

B(ejω) is determined by the zeros of zMB(z) =∑M

r=0 b[M − r]zr

Real b[n] ⇒ conjugate zero pairs: z ⇒ z∗

Symmetric: b[n] = b[M − n] ⇒ reciprocal zero pairs: z ⇒ z−1

Real: Symmetric:[1, −1.28, 0.64] [1, −1.64 + 0.27j, 1]

-1 0 1

-1

-0.5

0

0.5

1

z-1 0 1

-1

-0.5

0

0.5

1

z

-2 0 20

1

2

ω (rad/sample)-2 0 2

0

1

2

3

ω (rad/sample)

Page 25: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

FIR Symmetries +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 4 / 15

B(ejω) is determined by the zeros of zMB(z) =∑M

r=0 b[M − r]zr

Real b[n] ⇒ conjugate zero pairs: z ⇒ z∗

Symmetric: b[n] = b[M − n] ⇒ reciprocal zero pairs: z ⇒ z−1

Real + Symmetric b[n] ⇒ conjugate+reciprocal groups of fouror else pairs on the real axis

Real: Symmetric: Real + Symmetric:[1, −1.28, 0.64] [1, −1.64 + 0.27j, 1] [1, −3.28, 4.7625, −3.28, 1]

-1 0 1

-1

-0.5

0

0.5

1

z-1 0 1

-1

-0.5

0

0.5

1

z-1 0 1

-1

-0.5

0

0.5

1

z

-2 0 20

1

2

ω (rad/sample)-2 0 2

0

1

2

3

ω (rad/sample)-2 0 2

0

5

10

ω (rad/sample)

Page 26: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Page 27: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)

Page 28: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)Also an additional N −M zeros at the origin (affect phase only)

Page 29: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)Also an additional N −M zeros at the origin (affect phase only)

∣H(ejω)∣

∣ =|b[0]||z−M |∏M

i=1|z−qi|

|z−N |∏

Ni=1|z−pi|

for z = ejω

Page 30: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)Also an additional N −M zeros at the origin (affect phase only)

∣H(ejω)∣

∣ =|b[0]||z−M |∏M

i=1|z−qi|

|z−N |∏

Ni=1|z−pi|

for z = ejω

Example:

H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

0 1 2 30

5

10

ω

Page 31: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)Also an additional N −M zeros at the origin (affect phase only)

∣H(ejω)∣

∣ =|b[0]||z−M |∏M

i=1|z−qi|

|z−N |∏

Ni=1|z−pi|

for z = ejω

Example:

H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2=2(1+1.2z−1)

(1−(0.48−0.64j)z−1)(1−(0.48+0.64j)z−1)

0 1 2 30

5

10

ω-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 32: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)Also an additional N −M zeros at the origin (affect phase only)

∣H(ejω)∣

∣ =|b[0]||z−M |∏M

i=1|z−qi|

|z−N |∏

Ni=1|z−pi|

for z = ejω

Example:

H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2=2(1+1.2z−1)

(1−(0.48−0.64j)z−1)(1−(0.48+0.64j)z−1)

At ω = 1.3:∣

∣H(ejω)∣

∣ = 2×1.761.62×0.39

0 1 2 30

5

10

ω-1 0 1

-1

-0.5

0

0.5

1

1.76 1.62

0.39

ℜ(z)

Page 33: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)Also an additional N −M zeros at the origin (affect phase only)

∣H(ejω)∣

∣ =|b[0]||z−M |∏M

i=1|z−qi|

|z−N |∏

Ni=1|z−pi|

for z = ejω

Example:

H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2=2(1+1.2z−1)

(1−(0.48−0.64j)z−1)(1−(0.48+0.64j)z−1)

At ω = 1.3:∣

∣H(ejω)∣

∣ = 2×1.761.62×0.39= 5.6

0 1 2 30

5

10

ω-1 0 1

-1

-0.5

0

0.5

1

1.76 1.62

0.39

ℜ(z)

Page 34: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

IIR Frequency Response

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 5 / 15

Factorize H(z) = B(z)A(z)=

b[0]∏

Mi=1(1−qiz

−1)∏

Ni=1(1−piz−1)

Roots of A(z) and B(z) are the “poles” {pi} and “zeros” {qi} of H(z)Also an additional N −M zeros at the origin (affect phase only)

∣H(ejω)∣

∣ =|b[0]||z−M |∏M

i=1|z−qi|

|z−N |∏

Ni=1|z−pi|

for z = ejω

Example:

H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2=2(1+1.2z−1)

(1−(0.48−0.64j)z−1)(1−(0.48+0.64j)z−1)

At ω = 1.3:∣

∣H(ejω)∣

∣ = 2×1.761.62×0.39= 5.6

∠H(ejω) = (0.6 + 1.3)− (1.7 + 2.2) = −1.97

0 1 2 30

5

10

ω-1 0 1

-1

-0.5

0

0.5

1

1.76 1.62

0.39

ℜ(z)

-1 0 1

-1

-0.5

0

0.5

1

0.6

1.7

2.2

1.3

ℜ(z)

Page 35: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)

Page 36: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)Negate all odd powers of z, i.e. negate alternate a[n] and b[n]

Page 37: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)Negate all odd powers of z, i.e. negate alternate a[n] and b[n]

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

Page 38: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)Negate all odd powers of z, i.e. negate alternate a[n] and b[n]

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 39: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)Negate all odd powers of z, i.e. negate alternate a[n] and b[n]

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Page 40: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)Negate all odd powers of z, i.e. negate alternate a[n] and b[n]

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Negate z: HR(z) =2−2.4z−1

1+0.96z−1+0.64z−2 Negate odd coefficients

Page 41: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)Negate all odd powers of z, i.e. negate alternate a[n] and b[n]

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Negate z: HR(z) =2−2.4z−1

1+0.96z−1+0.64z−2 Negate odd coefficients

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Pole and zero positions are negated

Page 42: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Negating z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 6 / 15

Given a filter H(z) we can form a new one HR(z) = H(−z)Negate all odd powers of z, i.e. negate alternate a[n] and b[n]

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Negate z: HR(z) =2−2.4z−1

1+0.96z−1+0.64z−2 Negate odd coefficients

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Pole and zero positions are negated, response is flipped and conjugated.

Page 43: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)

Page 44: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)Insert two zeros between each a[n] and b[n] term

Page 45: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)Insert two zeros between each a[n] and b[n] term

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

Page 46: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)Insert two zeros between each a[n] and b[n] term

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 47: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)Insert two zeros between each a[n] and b[n] term

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

-2 0 20

5

10

ω (rad/sample)

Page 48: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)Insert two zeros between each a[n] and b[n] term

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

-2 0 20

5

10

ω (rad/sample)

Cube z: HC(z) =2+2.4z−3

1−0.96z−3+0.64z−6 Insert 2 zeros between coefs

Page 49: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)Insert two zeros between each a[n] and b[n] term

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

-2 0 20

5

10

ω (rad/sample)

Cube z: HC(z) =2+2.4z−3

1−0.96z−3+0.64z−6 Insert 2 zeros between coefs

-1 0 1

-1

-0.5

0

0.5

1

z

Pole and zero positions are replicated

Page 50: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Cubing z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 7 / 15

Given a filter H(z) we can form a new one HC(z) = H(z3)Insert two zeros between each a[n] and b[n] term

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

-2 0 20

5

10

ω (rad/sample)

Cube z: HC(z) =2+2.4z−3

1−0.96z−3+0.64z−6 Insert 2 zeros between coefs

-1 0 1

-1

-0.5

0

0.5

1

z-2 0 2

0

5

10

ω (rad/sample)

C

Pole and zero positions are replicated, magnitude response replicated.

Page 51: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Page 52: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Page 53: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

Page 54: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 55: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Page 56: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Scale z: HS(z) = H( z1.1 ) =

2+2.64z−1

1−1.056z−1+0.7744z−2

Page 57: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Scale z: HS(z) = H( z1.1 ) =

2+2.64z−1

1−1.056z−1+0.7744z−2

-1 0 1

-1

-0.5

0

0.5

1

z

Pole and zero positions are multiplied by α

Page 58: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Scale z: HS(z) = H( z1.1 ) =

2+2.64z−1

1−1.056z−1+0.7744z−2

-1 0 1

-1

-0.5

0

0.5

1

z0 1 2 3

0

5

10

15

20

ω (rad/s)

Pole and zero positions are multiplied by α, α > 1 ⇒peaks sharpened.

Page 59: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Scale z: HS(z) = H( z1.1 ) =

2+2.64z−1

1−1.056z−1+0.7744z−2

-1 0 1

-1

-0.5

0

0.5

1

z0 1 2 3

0

5

10

15

20

ω (rad/s)

Pole and zero positions are multiplied by α, α > 1 ⇒peaks sharpened.Pole at z = p gives peak bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)

Page 60: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Scaling z +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 8 / 15

Given a filter H(z) we can form a new one HS(z) = H( zα)

Multiply a[n] and b[n] by αn

Example: H(z) = 2+2.4z−1

1−0.96z−1+0.64z−2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 30

5

10

ω

Scale z: HS(z) = H( z1.1 ) =

2+2.64z−1

1−1.056z−1+0.7744z−2

-1 0 1

-1

-0.5

0

0.5

1

z0 1 2 3

0

5

10

15

20

ω (rad/s)

Pole and zero positions are multiplied by α, α > 1 ⇒peaks sharpened.Pole at z = p gives peak bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)For pole near unit circle, decrease bandwidth by ≈ 2 logα

Page 61: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]

Page 62: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 63: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

Page 64: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

Page 65: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0 1 2 30

0.5

1

ω (rad/sample)

Page 66: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.1 1

-20

-10

0

ω (rad/sample)

Page 67: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

Low-pass filter with DC gain of unity.

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.1 1

-20

-10

0

ω (rad/sample)

Page 68: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

Low-pass filter with DC gain of unity.

3 dB frequency is ω3dB = cos−1(

1− (1−p)2

2p

)

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.1 1

-20

-10

0

ω (rad/sample)

Page 69: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

Low-pass filter with DC gain of unity.

3 dB frequency is ω3dB = cos−1(

1− (1−p)2

2p

)

≈ 2 1−p1+p

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.1 1

-20

-10

0

ω (rad/sample)

Page 70: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

Low-pass filter with DC gain of unity.

3 dB frequency is ω3dB = cos−1(

1− (1−p)2

2p

)

≈ 2 1−p1+p

≈ 1τ

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.1 1

-20

-10

0

1/τω (rad/sample)

Page 71: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

Low-pass filter with DC gain of unity.

3 dB frequency is ω3dB = cos−1(

1− (1−p)2

2p

)

≈ 2 1−p1+p

≈ 1τ

Compare continuous time: HC(jω) =1

1+jωτ

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.1 1

-20

-10

0

1/τ

HC(jω)

ω (rad/sample)

Page 72: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

Low-pass filter with DC gain of unity.

3 dB frequency is ω3dB = cos−1(

1− (1−p)2

2p

)

≈ 2 1−p1+p

≈ 1τ

Compare continuous time: HC(jω) =1

1+jωτ

Indistinguishable for low ω but H(ejω) is periodic, HC(jω) is not

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.1 1

-20

-10

0

1/τ

HC(jω)

ω (rad/sample)

Page 73: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Low-pass filter +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 9 / 15

1st order low pass filter: extremely commony[n] = (1− p)x[n] + py[n− 1]⇒ H(z) = 1−p

1−pz−1

Impulse response:h[n] = (1− p)pn = (1− p)e−

where τ = 1− ln p

is the time constant in samples.

Magnitude response:∣

∣H(ejω)∣

∣ = 1−p√1−2p cosω+p2

Low-pass filter with DC gain of unity.

3 dB frequency is ω3dB = cos−1(

1− (1−p)2

2p

)

≈ 2 1−p1+p

≈ 1τ

Compare continuous time: HC(jω) =1

1+jωτ

Indistinguishable for low ω but H(ejω) is periodic, HC(jω) is not

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

p=0.80

0.01 0.1

-30

-20

-10

0

H(jω)

HC(jω)

1/τ 2πω (rad/sample)

Page 74: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

Page 75: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates

Page 76: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitude

Page 77: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω

Page 78: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω ⇔ “allpass”

Page 79: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω ⇔ “allpass”

However phase is not constant: ∠H(ejω) = −ωM − 2∠A(ejω)

Page 80: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω ⇔ “allpass”

However phase is not constant: ∠H(ejω) = −ωM − 2∠A(ejω)

1st order allpass: H(z) = −p+z−1

1−pz−1

0 1 2 30

0.2

0.4

0.6

0.8

1

ω0 1 2 3

-3

-2

-1

0

ω

Page 81: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω ⇔ “allpass”

However phase is not constant: ∠H(ejω) = −ωM − 2∠A(ejω)

1st order allpass: H(z) = −p+z−1

1−pz−1 = −p 1−p−1z−1

1−pz−1

Pole at p and zero at p−1

0 1 2 30

0.2

0.4

0.6

0.8

1

ω0 1 2 3

-3

-2

-1

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 82: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω ⇔ “allpass”

However phase is not constant: ∠H(ejω) = −ωM − 2∠A(ejω)

1st order allpass: H(z) = −p+z−1

1−pz−1 = −p 1−p−1z−1

1−pz−1

Pole at p and zero at p−1: “reflected in unit circle”

0 1 2 30

0.2

0.4

0.6

0.8

1

ω0 1 2 3

-3

-2

-1

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 83: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω ⇔ “allpass”

However phase is not constant: ∠H(ejω) = −ωM − 2∠A(ejω)

1st order allpass: H(z) = −p+z−1

1−pz−1 = −p 1−p−1z−1

1−pz−1

Pole at p and zero at p−1: “reflected in unit circle”

Constant distance ratio:∣

∣ejω − p∣

∣ = |p|∣

∣ejω − 1

p

∣∀ω

0 1 2 30

0.2

0.4

0.6

0.8

1

ω0 1 2 3

-3

-2

-1

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 84: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Allpass filters +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 10 / 15

If H(z) = B(z)A(z) with b[n] = a∗[M − n] then we have an allpass filter:

⇒ H(ejω) =∑

Mr=0 a∗[M−r]e−jωr

∑Mr=0 a[r]e−jωr

= e−jωM∑

Ms=0 a∗[s]ejωs

∑Mr=0 a[r]e−jωr

[s = M − r]

The two sums are complex conjugates ⇒ they have the same magnitudeHence

∣H(ejω)∣

∣ = 1∀ω ⇔ “allpass”

However phase is not constant: ∠H(ejω) = −ωM − 2∠A(ejω)

1st order allpass: H(z) = −p+z−1

1−pz−1 = −p 1−p−1z−1

1−pz−1

Pole at p and zero at p−1: “reflected in unit circle”

Constant distance ratio:∣

∣ejω − p∣

∣ = |p|∣

∣ejω − 1

p

∣∀ω

0 1 2 30

0.2

0.4

0.6

0.8

1

ω0 1 2 3

-3

-2

-1

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

In an allpass filter, the zeros are the poles reflected in the unit circle.

Page 85: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Page 86: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

Page 87: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

Page 88: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

Page 89: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

Page 90: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω

Page 91: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω

Page 92: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω

Page 93: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

Page 94: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

Page 95: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

Page 96: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Page 97: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Example: H(z) = 11−pz−1

Page 98: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Example: H(z) = 11−pz−1

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-0.8

-0.6

-0.4

-0.2

0

p=0.80

ω

Page 99: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Example: H(z) = 11−pz−1⇒ τH = −τ[1 −p]

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-0.8

-0.6

-0.4

-0.2

0

p=0.80

ω

Page 100: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Example: H(z) = 11−pz−1⇒ τH = −τ[1 −p]= −ℜ

(

−pe−jω

1−pe−jω

)

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-0.8

-0.6

-0.4

-0.2

0

p=0.80

ω

Page 101: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Example: H(z) = 11−pz−1⇒ τH = −τ[1 −p]= −ℜ

(

−pe−jω

1−pe−jω

)

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-0.8

-0.6

-0.4

-0.2

0

p=0.80

ω

0 1 2 3

0

1

2

3 p=0.80

ω

τ H

Page 102: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Example: H(z) = 11−pz−1⇒ τH = −τ[1 −p]= −ℜ

(

−pe−jω

1−pe−jω

)

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-0.8

-0.6

-0.4

-0.2

0

p=0.80

ω

0 1 2 3

0

1

2

3 p=0.80

ω

τ HAverage group delay (over ω) = (# poles – # zeros) within the unit circle

Page 103: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Group Delay +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 11 / 15

Group delay: τH(ejω) = −d∠H(ejω)dω

= delay of the modulation envelope.

Trick to get at phase: lnH(ejω) = ln∣

∣H(ejω)∣

∣+ j∠H(ejω)

τH =−d(ℑ(lnH(ejω)))

dω= ℑ

(

−1H(ejω)

dH(ejω)dω

)

= ℜ(

−zH(z)

dHdz

)∣

z=ejω

H(ejω) =∑∞

n=0 h[n]e−jnω= F (h[n]) [F = DTFT]

dH(ejω)dω

=∑∞

n=0 −jnh[n]e−jnω= −jF (nh[n])

τH = ℑ(

−1H(ejω)

dH(ejω)dω

)

= ℑ(

jF(nh[n])F(h[n])

)

= ℜ(

F(nh[n])F(h[n])

)

Example: H(z) = 11−pz−1⇒ τH = −τ[1 −p]= −ℜ

(

−pe−jω

1−pe−jω

)

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-0.8

-0.6

-0.4

-0.2

0

p=0.80

ω

0 1 2 3

0

1

2

3 p=0.80

ω

τ HAverage group delay (over ω) = (# poles – # zeros) within the unit circle

Zeros on the unit circle count –½

Page 104: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 105: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 106: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

0 1 2 30

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

Page 107: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

0 1 2 30

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

Page 108: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

0 1 2 30

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

0 1 2 3-10

0

10

20

30

ω

τ H

Page 109: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

0 1 2 30

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

Page 110: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

0 1 2 30

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

Page 111: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

0 1 2 30

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

Page 112: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

Reflecting an interior zero to the exteriormultiplies

∣H(ejω)∣

∣ by a constant butincreases average group delay by 1 sample. 0 1 2 3

0

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

Page 113: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

Reflecting an interior zero to the exteriormultiplies

∣H(ejω)∣

∣ by a constant butincreases average group delay by 1 sample. 0 1 2 3

0

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

A filter with all zeros inside the unit circle is a minimum phase filter:

Page 114: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

Reflecting an interior zero to the exteriormultiplies

∣H(ejω)∣

∣ by a constant butincreases average group delay by 1 sample. 0 1 2 3

0

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

A filter with all zeros inside the unit circle is a minimum phase filter:• Lowest possible group delay for a given magnitude response

Page 115: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

Reflecting an interior zero to the exteriormultiplies

∣H(ejω)∣

∣ by a constant butincreases average group delay by 1 sample. 0 1 2 3

0

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

A filter with all zeros inside the unit circle is a minimum phase filter:• Lowest possible group delay for a given magnitude response• Energy in h[n] is concentrated towards n = 0

Page 116: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

Reflecting an interior zero to the exteriormultiplies

∣H(ejω)∣

∣ by a constant butincreases average group delay by 1 sample. 0 1 2 3

0

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

A filter with all zeros inside the unit circle is a minimum phase filter:• Lowest possible group delay for a given magnitude response• Energy in h[n] is concentrated towards n = 0

Page 117: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Minimum Phase +

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 12 / 15

Average group delay (over ω) = (# poles – # zeros) within the unit circle

• zeros on the unit circle count –½

Reflecting an interior zero to the exteriormultiplies

∣H(ejω)∣

∣ by a constant butincreases average group delay by 1 sample. 0 1 2 3

0

1

2

3

4

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3

-10

-5

0

ω

-1 0 1

-1

-0.5

0

0.5

1

ℜ(z)

0 1 2 3-10

0

10

20

30

ω

τ H

A filter with all zeros inside the unit circle is a minimum phase filter:• Lowest possible group delay for a given magnitude response• Energy in h[n] is concentrated towards n = 0

Page 118: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Page 119: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

Page 120: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

A filter has linear phase iff h[n] is symmetric or antisymmetric:h[n] = h[M − n] ∀n or else h[n] = −h[M − n] ∀n

Page 121: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

A filter has linear phase iff h[n] is symmetric or antisymmetric:h[n] = h[M − n] ∀n or else h[n] = −h[M − n] ∀n

M can be even (⇒ ∃ mid point) or odd (⇒ ∄ mid point)

Page 122: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

A filter has linear phase iff h[n] is symmetric or antisymmetric:h[n] = h[M − n] ∀n or else h[n] = −h[M − n] ∀n

M can be even (⇒ ∃ mid point) or odd (⇒ ∄ mid point)

Proof ⇐:2H(ejω) =

∑M0 h[n]e−jωn +

∑M0 h[M − n]e−jω(M−n)

Page 123: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

A filter has linear phase iff h[n] is symmetric or antisymmetric:h[n] = h[M − n] ∀n or else h[n] = −h[M − n] ∀n

M can be even (⇒ ∃ mid point) or odd (⇒ ∄ mid point)

Proof ⇐:2H(ejω) =

∑M0 h[n]e−jωn +

∑M0 h[M − n]e−jω(M−n)

= e−jωM2

∑M0 h[n]e−jω(n−M

2 ) + h[M − n]ejω(n−M2 )

Page 124: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

A filter has linear phase iff h[n] is symmetric or antisymmetric:h[n] = h[M − n] ∀n or else h[n] = −h[M − n] ∀n

M can be even (⇒ ∃ mid point) or odd (⇒ ∄ mid point)

Proof ⇐:2H(ejω) =

∑M0 h[n]e−jωn +

∑M0 h[M − n]e−jω(M−n)

= e−jωM2

∑M0 h[n]e−jω(n−M

2 ) + h[M − n]ejω(n−M2 )

h[n] symmetric:

2H(ejω) = 2e−jωM2

∑M0 h[n] cos

(

n− M2

)

ω

Page 125: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

A filter has linear phase iff h[n] is symmetric or antisymmetric:h[n] = h[M − n] ∀n or else h[n] = −h[M − n] ∀n

M can be even (⇒ ∃ mid point) or odd (⇒ ∄ mid point)

Proof ⇐:2H(ejω) =

∑M0 h[n]e−jωn +

∑M0 h[M − n]e−jω(M−n)

= e−jωM2

∑M0 h[n]e−jω(n−M

2 ) + h[M − n]ejω(n−M2 )

h[n] symmetric:

2H(ejω) = 2e−jωM2

∑M0 h[n] cos

(

n− M2

)

ω

h[n] anti-symmetric:

2H(ejω) = −2je−jωM2

∑M0 h[n] sin

(

n− M2

)

ω

Page 126: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Linear Phase Filters

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 13 / 15

The phase of a linear phase filter is: ∠H(ejω) = θ0 − αω

Equivalently constant group delay: τH = −d∠H(ejω)dω

= α

A filter has linear phase iff h[n] is symmetric or antisymmetric:h[n] = h[M − n] ∀n or else h[n] = −h[M − n] ∀n

M can be even (⇒ ∃ mid point) or odd (⇒ ∄ mid point)

Proof ⇐:2H(ejω) =

∑M0 h[n]e−jωn +

∑M0 h[M − n]e−jω(M−n)

= e−jωM2

∑M0 h[n]e−jω(n−M

2 ) + h[M − n]ejω(n−M2 )

h[n] symmetric:

2H(ejω) = 2e−jωM2

∑M0 h[n] cos

(

n− M2

)

ω

h[n] anti-symmetric:

2H(ejω) = −2je−jωM2

∑M0 h[n] sin

(

n− M2

)

ω

= 2e−j(π2 +ωM

2 )∑M

0 h[n] sin(

n− M2

)

ω

Page 127: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

Page 128: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions

Page 129: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)

Page 130: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)

Page 131: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

Page 132: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]

Page 133: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

Page 134: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

• Group delay: τH(

ejω)

= −d∠H(ejω)dω

samples

Page 135: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

• Group delay: τH(

ejω)

= −d∠H(ejω)dω

samples

◦ Symmetrical h[n] ⇔ τH(

ejω)

= M2 ∀ω

Page 136: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

• Group delay: τH(

ejω)

= −d∠H(ejω)dω

samples

◦ Symmetrical h[n] ⇔ τH(

ejω)

= M2 ∀ω

◦ Average τH over ω = (# poles – # zeros) within the unit circle

Page 137: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

• Group delay: τH(

ejω)

= −d∠H(ejω)dω

samples

◦ Symmetrical h[n] ⇔ τH(

ejω)

= M2 ∀ω

◦ Average τH over ω = (# poles – # zeros) within the unit circle

• Minimum phase if zeros have |q| ≤ 1

Page 138: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

• Group delay: τH(

ejω)

= −d∠H(ejω)dω

samples

◦ Symmetrical h[n] ⇔ τH(

ejω)

= M2 ∀ω

◦ Average τH over ω = (# poles – # zeros) within the unit circle

• Minimum phase if zeros have |q| ≤ 1◦ Lowest possible group delay for given |H(ejω)|

Page 139: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

• Group delay: τH(

ejω)

= −d∠H(ejω)dω

samples

◦ Symmetrical h[n] ⇔ τH(

ejω)

= M2 ∀ω

◦ Average τH over ω = (# poles – # zeros) within the unit circle

• Minimum phase if zeros have |q| ≤ 1◦ Lowest possible group delay for given |H(ejω)|

• Linear phase = Constant group Delay = symmetric/antisymmetric h[n]

Page 140: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

Summary

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 14 / 15

• Useful filters have difference equations:

◦ Freq response determined by pole/zero positions◦ N −M zeros at origin (or M −N poles)◦ Geometric construction of |H(ejω)|

⊲ Pole bandwidth ≈ 2 |log |p|| ≈ 2 (1− |p|)◦ Stable if poles have |p| < 1

• Allpass filter: a[n] = b[M − n]◦ Reflecting a zero in unit circle leaves |H(ejω)| unchanged

• Group delay: τH(

ejω)

= −d∠H(ejω)dω

samples

◦ Symmetrical h[n] ⇔ τH(

ejω)

= M2 ∀ω

◦ Average τH over ω = (# poles – # zeros) within the unit circle

• Minimum phase if zeros have |q| ≤ 1◦ Lowest possible group delay for given |H(ejω)|

• Linear phase = Constant group Delay = symmetric/antisymmetric h[n]

For further details see Mitra: 6, 7.

Page 141: 5: Filters - Faculty of Engineering | Imperial College  · PDF file•Minimum Phase + •Linear Phase Filters

MATLAB routines

5: Filters

• Difference Equations

• FIR Filters

• FIR Symmetries +

• IIR Frequency Response

• Negating z +

• Cubing z +

• Scaling z +

• Low-pass filter +

• Allpass filters +

• Group Delay +

• Minimum Phase +

• Linear Phase Filters

• Summary

• MATLAB routines

DSP and Digital Filters (2017-10159) Filters: 5 – 15 / 15

filter filter a signalimpz Impulse response

residuez partial fraction expansiongrpdelay Group Delay

freqz Calculate filter frequency response