Spfirst l10 Ev
Spfirst l10 Ev
Spfirst l10 Ev
Processing
First
Lecture 10
FIR Filtering
Introduction
READING ASSIGNMENTS
This Lecture:
Chapter 5, Sects. 5-1, 5-2 and 5-3 (partial)
Other Reading:
Recitation: Ch. 5, Sects 5-4, 5-6, 5-7 and 5-8
CONVOLUTION
LECTURE OBJECTIVES
INTRODUCE FILTERING IDEA
Weighted Average
Running Average
FIR
Filters
DIGITAL FILTERING
x(t)
A-to-D
x[n]
COMPUTER
y[n]
D-to-A
y(t)
For the price of a small house, you could have one of these.
Copyright Monash University 2009
DISCRETE-TIME SYSTEM
x[n]
COMPUTER
y[n]
SYSTEM
y[n]
EXAMPLES:
POINTWISE OPERATORS
SQUARING: y[n] = (x[n])2
RUNNING AVERAGE
RULE: Eg the output at time n is the average of three
consecutive input values
DISCRETE-TIME SIGNAL
x[n] is a LIST of NUMBERS
INDEXED by n : , x[-1]=0, x[0]=2, x[1]=4,
STEM PLOT
10
Make a TABLE
n=0
n=1
Copyright Monash University 2009
3/19/2015
11
INPUT SIGNAL
3/19/2015
Copyright Monash University 2009
12
13
n is
Noncausal
TIME filtering
3/19/2015
14
y[n] bk x[n k ]
k 0
For example,
bk {3, 1, 2,1}
y[n ] bk x[n k ]
k 0
15
y[n] bk x[n k ]
k 0
FILTER ORDER is M
FILTER LENGTH is L = M+1
NUMBER of FILTER COEFFS is L
Copyright Monash University 2009
16
y[n] bk x[n k ]
k 0
x[n-M]
x[n]
17
OUTPUT
50-pt Averager
Copyright Monash University 2009
3/19/2015
18
1 n 0
[n ]
0 n 0
UNIT-IMPULSE
1
n
Copyright Monash University 2009
19
[n-i] is NON-ZERO
Only when n-i = 0 !!!
[n 3]
n3
3/19/2015
Copyright Monash University 2009
20
x[n]
x[k ] [n k ]
3/19/2015
21
NOTE:
k[n] = [n-k] for - < k <
is an orthonormal basis for
Discrete-Time signals
Copyright Monash University 2009
3/19/2015
22
1 n 0
u[n ]
0 n 0
[n]
u[n]
u[n-1]
u[n] u[n 1]
[n]
24
h[n] {, 0, 0, 14 , 14 , 14 , 14 , 0, 0, }
Copyright Monash University 2009
25
h[n] {, 0, 0, 14 , 14 , 14 , 14 , 0, 0, }
h in h[n] denotes
Impulse Response
n = 1
n=0
n=1
NON-ZERO
When window
overlaps [n]
n
n=4
n=5
Copyright Monash University 2009
26
y[n] bk x[n k ]
k 0
CONVOLUTION
3/19/2015
27
FILTERING EXAMPLE
Input : x[n] (1.02)n cos(2 n / 8 / 4)
7-point AVERAGER
Removes cosine
for 0 n 40
y7 [n] 17 x[n k ]
k 0
3-point AVERAGER
Changes A slightly
y3[n] 13 x[n k ]
k 0
28
Phase shift
3/19/2015
29