Professional Documents
Culture Documents
Discrete - Time Systems Discrete - Time Systems: Examples
Discrete - Time Systems Discrete - Time Systems: Examples
Discrete - Time Systems Discrete - Time Systems: Examples
Examples
Discrete-Time Systems
A discrete-time system processes a given
input sequence x[n] to generates an output
sequence y[n] with more desirable
properties
In most applications, the discrete-time
system is a single-input, single-output
system:
Discrete time
System
x[n]
1
Input sequence
y[n]
Output sequence
DiscreteDiscrete-Time Systems:Examples
l =
n 1
l =
l =0
n
= y[1] + x[l], n 0
l=0
DiscreteDiscrete-Time Systems:Examples
DiscreteDiscrete-Time Systems:Examples
M 1
1
y[ n] = M
x[ n k ]
k =0
l =
6
Copyright 2005, S. K. Mitra
DiscreteDiscrete-Time Systems:Examples
DiscreteDiscrete-Time Systems:Examples
1 M 1
x[ n l] +
M
l =0
1 M
x[ n M ] x[ n M ]
= x[ n l] + x[ n] x[ n M ]
M
l =1
M
1
= x[ n 1 l] + x[ n] x[ n M ]
M
l =0
Hence
y[ n] =
y[ n] = y[ n 1] +
1
( x[ n] x[ n M ])
M
8
Copyright 2005, S. K. Mitra
DiscreteDiscrete-Time Systems:Examples
DiscreteDiscrete-Time Systems:Examples
8
d[n]
s[n]
x[n]
Amplitude
6
4
2
0
-2
0
10
20
30
Time index n
40
50
7
s[n]
y[n]
Amplitude
5
4
3
2
1
0
0
10
20
30
Time index n
40
50
10
DiscreteDiscrete-Time Systems:Examples
DiscreteDiscrete-Time Systems:Examples
Linear interpolation - Employed to estimate
sample values between pairs of adjacent
sample values of a discrete-time sequence
Factor-of-4 interpolation
y[n]
= 3 y[ n 3] + 2 x[ n 2] + x[ n 1] + x[ n]
3
11
12
Copyright 2005, S. K. Mitra
4
5
10
11
12
Discrete-Time Systems:
Examples
Discrete-Time Systems:
Examples
Factor-of-2 interpolator -
Original ( 512512 )
Down sampled
( 256256 )
14
Copyright 2005, S. K. Mitra
Discrete-Time Systems:
Examples
Discrete-Time Systems:
Examples
Median Filter
The median of a set of (2K+1) numbers is
the number such that K numbers from the
set have values greater than this number and
the other K numbers have values smaller
Median can be determined by rank-ordering
the numbers in the set by their values and
choosing the number at the middle
15
Median Filter
Example: Consider the set of numbers
{2, 3, 10, 5, 1}
Rank-order set is given by
{ 3, 1, 2, 5, 10}
Hence,
med{2, 3, 10, 5, 1} = 2
16
Discrete-Time Systems:
Examples
Discrete-Time Systems:
Examples
Median Filter
Implemented by sliding a window of odd
length over the input sequence {x[n]} one
sample at a time
Output y[n] at instant n is the median value
of the samples inside the window centered
at n
17
Median Filter
Finds applications in removing additive
random noise, which shows up as sudden
large errors in the corrupted signal
Usually used for the smoothing of signals
corrupted by impulse noise
18
Discrete-Time Systems:
Examples
Discrete-Time Systems:
Classification
19
Linear System
Shift-Invariant System
Causal System
Stable System
Passive and Lossless Systems
20
Copyright 2005, S. K. Mitra
21
l =
l =
l =0
n
x2 [l]
y[n] = y[1] +
( x1[l] + x 2 [l])
Copyright 2005, S. K. Mitra
l =0
n
l =0
x2 [l])
l =0
l =0
l =0
l =0
Nonlinear Discrete-Time
System
25
26
Nonlinear Discrete-Time
System
Nonlinear Discrete-Time
System
Note
27
28
Copyright 2005, S. K. Mitra
Shift-Invariant System
Shift-Invariant System
29
Shift-Invariant System
Shift-Invariant System
31
Ln
)
/
L
],
n = 0, L, 2 L, .....
o
=
0
,
otherwise
x1,u [n]
Hence, the up-sampler is a time-varying system
32
Copyright 2005, S. K. Mitra
Causal System
Linear Time-Invariant (LTI) System A system satisfying both the linearity and
the time-invariance property
LTI systems are mathematically easy to
analyze and characterize, and consequently,
easy to design
Highly useful signal processing algorithms
have been developed utilizing this class of
systems over the last several decades
33
34
Copyright 2005, S. K. Mitra
Causal System
Causal System
Then
36
Copyright 2005, S. K. Mitra
Stable System
Causal System
y[n] = xu [n 1] + ( xu [n 2] + xu [n])
37
38
Copyright 2005, S. K. Mitra
Stable System
y[n] =
1
M
M 1
x[n k ]
k =0
y[n] =
1
M
1
M
M 1
x[n k ]
k =0
1
M
x[n k ]
k =0
n =
n =
40
Copyright 2005, S. K. Mitra
y[n] =
n =
41
( MBx ) Bx
39
2
2
y[n] x[n] <
M 1
x[n]
n =
42
Copyright 2005, S. K. Mitra
Impulse Response
Impulse Response
43
l =
44
Time-Domain Characterization
of LTI Discrete-Time System
Impulse Response
Example - The impulse response {h[n]} of
the factor-of-2 interpolator
1
y[n] = xu [n] + ( xu [n 1] + xu [n + 1])
2
is obtained by setting xu [n] = [n] and is
given by
1
h[n] = [n] + ( [n 1] + [n + 1])
Input-Output Relationship A consequence of the linear, timeinvariance property is that an LTI discretetime system is completely characterized by
its impulse response
45
x[l]
46
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
output
[n + 2] h[n + 2]
[n 1] h[n 1]
[n 2] h[n 2]
47
[n 5] h[n 5]
48
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
49
output
0.5[n + 2] 0.5h[n + 2]
1.5[n 1] 1.5h[n 1]
[n 2] h[n 2]
0.75[n 5] 0.75h[n 5]
Hence because of the linearity property we
get
y[n] = 0.5h[n + 2] + 1.5h[n 1]
h[n 2] + 0.75h[n 5]
x[n] = x[k ] [n k ]
k =
Time-Domain Characterization
of LTI Discrete-Time System
Convolution Sum
The summation
x[ n] = x[k ] [ n k ]
y[n] =
k =
will be
k =
k =
k =
x[n k ] h[k ]
k =
y[n] = x[k ] h[ n k ]
y[n] =
52
Copyright 2005, S. K. Mitra
Convolution Sum
Convolution Sum
54
Copyright 2005, S. K. Mitra
Convolution Sum
Convolution Sum
Schematic Representation h[ k ]
zn
h[n k ] v[k ]
y[n]
x[k ]
55
56
Convolution Sum
Convolution Sum
h[k]x[-4- k]
3
Amplitude
Amplitude
1.5
1
0.5
0
-0.5
-10
2
1
0
10
-10
Amplitude
Amplitude
57
y[n]
8
4
2
0
-10
10 k
y[-4]
8
4
2
0
-10
10
58
10
n
Convolution Sum
3
Amplitude
1
0.5
0
1
0.5
0
-10
10
y[n]
-0.5
-10
2
1
0
10
y[0]
-10
2
0
-10
10
n
4
2
0
-10
60
Copyright 2005, S. K. Mitra
4
2
0
-10
10
n
Amplitude
10
n
10
y[n]
8
Amplitude
Amplitude
10
1.5
0
0
y[-1]
h[k]x[0- k]
Amplitude
Amplitude
1.5
59
Amplitude
-0.5
-10
Convolution Sum
h[k]x[-1- k]
Amplitude
4
2
0
-10
10
n
Copyright 2005, S. K. Mitra
10
Convolution Sum
h[k]x[1- k]
Amplitude
0.5
0
10
y[1]
-10
1
0.5
0
10
y[n]
-0.5
-10
2
1
0
10
y[3]
-10
2
0
-10
4
2
0
-10
10
61
4
2
0
-10
10
n
Amplitude
2
0
-10
10
10
n
Convolution Sum
h[k]x[5- k]
2
1
10
y[5]
-10
1
0.5
0
0
0
h[k]x[7- k]
2
1.5
Amplitude
Amplitude
10
y[n]
-0.5
-10
2
1
0
10
-10
2
0
-10
2
0
-10
10
63
4
2
0
-10
10
n
Amplitude
Amplitude
2
0
-10
10
10
n
Convolution Sum
3
Amplitude
1
0.5
0
10
y[9]
1
0.5
0
10
y[n]
-0.5
-10
2
1
0
0
y[10]
10
-10
2
0
-10
10
n
4
2
0
-10
66
Copyright 2005, S. K. Mitra
4
2
0
-10
10
n
Amplitude
10
n
10
y[n]
8
Amplitude
Amplitude
-10
1.5
0
0
h[k]x[10- k]
Amplitude
Amplitude
1.5
65
Amplitude
-0.5
-10
Convolution Sum
h[k]x[9- k]
Amplitude
64
10
y[n]
y[7]
Amplitude
Amplitude
Amplitude
0.5
-0.5
-10
Convolution Sum
Amplitude
62
10
y[n]
8
Amplitude
Amplitude
0
0
h[k]x[3- k]
2
1.5
Amplitude
Amplitude
-0.5
-10
3
Amplitude
2
1.5
Amplitude
Convolution Sum
4
2
0
-10
10
n
Copyright 2005, S. K. Mitra
11
Convolution Sum
Convolution Sum
h[k]x[12- k]
0.5
0
2
1
0
y[12]
10
-10
1
0.5
0
-0.5
-10
h[k]x[13- k]
2
1.5
Amplitude
Amplitude
10
-0.5
-10
y[n]
2
1
0
0
y[13]
10
-10
8
2
0
-10
10
4
2
0
-10
67
4
2
0
-10
10
n
68
Amplitude
Amplitude
10
y[n]
Amplitude
Amplitude
Amplitude
Amplitude
4
2
0
-10
10
10
n
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
69
70
Copyright 2005, S. K. Mitra
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
Example - Develop the sequence y[n]
generated by the convolution of the
sequences x[n] and h[n] shown below
x[n]
As can be seen from the shifted timereversed version {h[n k ]} for n < 0, shown
below for n = 3 , for any value of the
sample index k, the k-th sample of either
{x[k]} or {h[n k ]} is zero
h[n]
2
3
1
h[3 k ]
1
0
2
3
0
2
1
5 4 3 2 1
71
72
Copyright 2005, S. K. Mitra
12
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
73
2 1
6 5 4
74
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
5 4 3 2 1
1
2
1
x[ k ]h[ 2 k ]
5 4 3
h[ 2 k ]
x[k ]h[1 k ]
h[1 k ]
1
1
4 3 2
3 2 1
1
4
75
76
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
y[7] = x[4]h[3] = 3
x[k]
1
0
3
1
78
Copyright 2005, S. K. Mitra
h[8 k ]
9 10 11
13
Time-Domain Characterization
of LTI Discrete-Time System
Time-Domain Characterization
of LTI Discrete-Time System
1
7
2 1
2
3
4
79
80
Copyright 2005, S. K. Mitra
Tabular Method of
Convolution Sum Computation
Time-Domain Characterization
of LTI Discrete-Time System
82
Copyright 2005, S. K. Mitra
Tabular Method of
Convolution Sum Computation
n:
g[ n ]:
h[ n ]:
y[ n ]:
Tabular Method of
Convolution Sum Computation
0
1
2
3
4
5
g[ 0 ]
g[1]
g[ 2 ]
g[ 3 ]
h[ 0 ]
h[1]
h[ 2 ]
g[ 0 ]h[ 0 ] g[1]h[ 0 ] g[ 2 ]h[ 0 ] g[ 3]h[ 0 ]
g[ 0 ]h[1] g[1]h[1] g[ 2 ]h[1] g[ 3 ]h[1]
g[ 0 ]h[ 2 ] g[1]h[ 2 ] g[ 2 ]h[ 2 ] g[ 3]h[ 2 ]
y[ 0 ]
y[1]
y[ 2 ]
y[ 3 ]
y[ 4 ]
y[ 5 ]
84
Copyright 2005, S. K. Mitra
14
Tabular Method of
Convolution Sum Computation
Tabular Method of
Convolution Sum Computation
85
86
Copyright 2005, S. K. Mitra
Simple Interconnection
Schemes
b =[1 2 0 -1]
then conv(a,b) yields
[ 2 4 1 3 1 5 1 3]
87
88
Copyright 2005, S. K. Mitra
Cascade Connection
Cascade Connection
h1[n]
h2[n]
h2[n]
h1[n]
90
Copyright 2005, S. K. Mitra
15
Cascade Connection
Cascade Connection
x[n ]
92
inverse system
channel ^
x[n ]
h1[n]
h2[n]
h1[n] * h 2[n] = [ n]
Cascade Connection
Cascade Connection
h2[l] = 0
93
for n 1
l =0
94
Copyright 2005, S. K. Mitra
Parallel Connection
h1[n]
h2[n]
95
x[n ]
h4[ n] = 2(0.5) [ n]
n
96
h1[n]
h3[n]
h2[n]
h4[n]
Copyright 2005, S. K. Mitra
16
h1[n]
h2[n]
h1[n]
h 2[ n ] * ( h3[ n ]+ h 4[ n ])
h 3[ n ] + h 4[ n ]
= [n] 1 [n 1]
2
97
98
Copyright 2005, S. K. Mitra
Therefore
4
= ( 12 ) n [ n] + 12 ( 12 ) n 1[n 1]
= ( 12 ) n [ n] + ( 12 ) n [n 1]
= ( 12 ) n [n] = [n]
17