Chapter 2
Review of Fundamentals of Digital Signal Processing 数字信号处理基础回顾
1
Chapter 2 Review of Fundamentals of Digital Signal Processing 1 - - PowerPoint PPT Presentation
Chapter 2 Review of Fundamentals of Digital Signal Processing 1 Outline DSP and Discrete Signals LTI Systems z-Transform Representations Discrete-Time Fourier Transform (DTFT) Discrete Fourier
1
2
3
– Method to represent a quantity, a phenomenon or an event
– something (e.g., a sound, gesture, or object) that carries information – a detectable physical quantity (e.g., a voltage, current, or magnetic field strength) by which messages or information can be transmitted
– Filtering/spectral analysis – Analysis, recognition, synthesis and coding of real world signals – Detection and estimation of signals in the presence of noise or interference
4
– basic numerical processing: add, subtract, multiply (scaling, amplification, attenuation), mute, … – algorithmic numerical processing: convolution or linear filtering, non-linear filtering (e.g., median filtering), difference equations, DFT, inverse filtering, MAX/MIN, …
5
6
a
a
s
s s s s
7
8
200 400 600 800 1000 1200 1400 1600
0.5 16kHz 100 200 300 400 500 600 700 800 900 1000
0.5 10kHz 100 200 300 400 500 600 700 800
0.5 8kHz samples
9
10
11
12
max max
s s
13
– Sampling a continuous-time signal – Mathematical formulas – generative system
14
c c t NT
=
T
15
A sequence, a function Value of the function at k
k
∞ =−∞
3 1 2 7
−
3 [
−
1 [
2 [
7 [
16
n
17
18
19
single input—single output single input—multiple output, e.g., filter bank analysis, etc.
20
1 2 1 2
1 1
d d
k
∞ =−∞
21
Is system y[n] = x[n]+ 2x[n +1]+3 linear? x1[n] → y1 [n] = x1 [n]+ 2x1 [n +1]+3 x2[n] → y2 [n] = x2 [n]+ 2x2 [n +1]+3 x1 [n]+ x2 [n] → y3[n] = x1 [n]+ x2 [n]+ 2x1 [n +1]+ 2x2 [n +1]+3≠y1[n]+ y2[n] ⇒ Not a linear system! Is system y[n] = x[n]+2x[n +1]+3 time/shift invariant? y[n] = x[n]+ 2x[n +1]+3 y[n −n0] = x[n −n0]+ 2x[n −n0 +1]+3 ⇒ System is time invariant! Is system y[n] = x[n]+2x[n +1]+3 causal? y[n] depends on x[n +1] ⇒ System is not causal !
22
3 3
m n m m n
∞ =−∞ = = −
23
The impulse response of an LTI system is of the form and the input to the system is of the form Determine the output of the system using the formula for discrete convolution.
24
n
n
1 1 1
m n m m n n n m m n m m m n n n n
∞ − =−∞ − = = + + +
Consider a digital system with input x[n] =1 for n=0,1,2,3 and 0 everywhere else, and with impulse response Determine the response y[n] of this linear system.
functions, i.e., x[n]= u[n]- u[n-4].
linear system with a step input and the output of the linear system with a delayed step input.
25
[ ] [ ], 1
n
h n a u n a = <
1 1 1 1 1
[ ] [ ] [ ] [ ] 1 [ ] [ ] [ 4]
n n m m
a a y n u m a u n m u n a y n y n y n
− ∞ − − =−∞
− = − = − = − −
26
k k
∞ ∞ =−∞ =−∞
27
28
29
1 2 3 4
c c
30
1 1
M M
−
31
1 1
32
33
1
n n n C
∞ − =−∞ −
Infinite power series in z-1, with x[n] as coefficients of term in z-n
(留数定理)
开)of X(z)
– Sufficient condition for convergence
34
n n
∞ − =−∞
1 2
35
n
1 1
N N n n
− − − − =
n
1
n n n
∞ − − =
1
– sub-sequence for n≥0 ⇒ – sub-sequence for n<0 ⇒ – total sequence ⇒
36
n
1 1
n n n
− − − =−∞
2
1 2
2
1
1 2
37
n n n n n n n n n i
∞ − =−∞ ∞ ∞ − − =−∞ =−∞ ∞ − =−∞
38
1
n n n n n n
∞ − =−∞ ∞ ∞ − − − =−∞ =−∞
39
1
n C
−
40
41
42
1 2
1 2
n
−
n
1
−
1
1
1 ( ) ( / ) 2
C X v W z v v dz
j π
−
43
44
j
j j n z e n j j n
ω
ω ω π ω ω π
∞ − = =−∞ −
n n n
∞ ∞ − =−∞ =−∞
45
Impulse Delayed impulse Step function Rectangular window Exponential Backward exponential
46
47
j
48
49
50
( 2 )
j j k
ω ω π +
51
52
1 2 / 1 2 /
N j kn N n N j kn N k
π π − − = − =
– looks like discrete-time Fourier series of periodic sequence
53
1
N n n
− − =
2 / 1 2 / 2 /
j k N k N j k N j kn N n
π π π − − =
54
r
∞ =−∞
2 /
j k N
π 1 2 / 1 2 /
N j kn N n N j kn N n
π π − − = − =
55
56
57
58
59
Periodic Sequence Finite Sequence Period = N Length = N Sequence defined for all n Sequence defined for n = 0,1,…, N-1 DFS defined for k = 0,1,…, N-1 DTFT defined for all ω
∞ −∞
60
61
1 2
1 2
2 /
j kn N
π − *[ ]
1
N N m
− =
1
1 [ ] ([ ])
N N r
X r W k r N
− =
−
62
63
64
m
∞ =−∞
j
arg[ ( )]
j
j j j r i j j j H e j j j j j j j
ω
ω ω ω ω ω ω ω ω ω ω ω ω
65
j
n
∞ =−∞
66
1
N M k r k r
= =
1 1
N M k r k r k r M r r r N k k k
− − = = − = − =
67
1 1 1 1
M r r N k k
− = − =
68
1) 2) ⇒ M zeros 3) if (symmetric, anti-symmetric) real(symmetric), imaginary(anti-symmetric)
69
1
M r M r
=
n
1 1
M M n n m n m
− − = =
/2
j j j M j
ω ω ω ω −
70
– can theoretically approximate any desired response to any degree of accuracy – requires longer filters than non-linear phase designs
– window approximation ⇒ analytical, closed form method – frequency sampling approximation ⇒ optimization method – optimal (minimax error) approximation ⇒ optimization method
71
72
73
74
75
1
N M k r k r
= =
1 1 1 1
M r r N r k N k k k k k N n k k k
− = − − = = =
76
– Butterworth designs: maximally flat amplitude – Bessel designs: maximally flat group delay – Chebyshev designs: equi-ripple in either passband or stopband – Elliptic designs: equi-ripple in both passband and stopband
– Impulse invariant transformation 冲击不变法
– Bilinear transformation 双线性变换法
analog frequency scale (0 to infinity) to the digital frequency scale (0 to pi)
(i.e., filter cutoff frequencies)
77
78
79
80
81
82
83
84
a
s s s s
85
86
87
88
– digital-to-analog converter
89
j T a
Ω
a a n
∞ =−∞
90
91
92
93
s s
94
95
j d
ω
sampling rate by the integer factor of L
T’’= T / L, i.e., xi[n]= xa(nT’’)= xa(nT/L)
xi[n]=x[n/L] for n = 0, ±L, ±2L, … but we need to fill in the unknown samples by an interpolation process
which relates xi[n] to x[n] directly
96
sin( ( '' ) / ) [ ] ( '') ( ) ( '' ) /
i a a k
nT kT T x n x nT x kT nT kT T π π
∞ =−∞
− = = −
sin( ( / )) [ ] ( '') [ ] ( / )
i a k
n L k x n x nT x k n L k π π
∞ =−∞
− = = −
samples in between (from the upsampling operation)
upsampling and 2π due to being a digital signal
97
[ / ] 0, , 2 ,... [ ]
u
x n L n L L x n = ± ± =
''
( )
j T u
X e Ω
98
99
– can approximate almost any rate conversion with appropriate values of L and M – for large values of L, or M, or both, can implement in stages, i.e., L =1024, use L1=32 followed by L2=32
100
appropriately in time and amplitude
them completely by impulse response, h(n)
efficiently process signals in both the time and frequency domains
terms of their Discrete Fourier transforms
frequency leads to aliasing in time => when processing time-limited signals, must be careful to sample in frequency at a sufficiently high rate to avoid time-aliasing
101
102