ch2 Mitra DSP C
ch2 Mitra DSP C
Discrete-Time
Di t Ti Signals
Si l &
Systems
清大電機系林嘉文
[email protected]
03 5731152
03-5731152
Original PowerPoint slides prepared by S. K. Mitra 2-1-1
© The McGraw-Hill Companies, Inc., 2007
Discrete-Time Signals: Time-Domain
Representation (1/10)
• Signals represented as sequences of numbers, called
samples
• Sample value of a typical signal or sequence denoted as
x[n] with n being an integer in the range − ∞ ≤ n ≤ ∞
• x[n] defined only for integer values of n and undefined for
non-integer values of n
• Discrete-time signal represented by {x[n]}
• Discrete-time signal
g mayy also be written as a sequence
q of
numbers inside braces:
• Here,
H th
the n-th
th sample
l iis given
i b
by
• A complex
p sequence
q {{x[n]}
[ ]} can be written as {{x[n]}
[ ]} =
{xre[n]}+ j{xim[n]} where xre[n] and xim[n] are the real and
imaginary parts of x[n]
• Often the braces are ignored to denote a sequence if
there is no ambiguity
where
• If N1 ≥ 0,
0 a right-sided
i h id d sequence iis called
ll d a causall
sequence
• A left-sided
l ft id d sequence x[n]
[ ] has
h zero-valued
l d samplesl ffor
n > N2 (called a anti-causal sequence if N2 ≤ 0)
Lp-norm:
• Addition operation:
• Multiplication operation:
(Unit Advance)
• Example:
• Example -
where
where
–E
Example
l - The
Th sequence x[n]
[ ] = cos0.3πn
03 i ab
is bounded
d d
sequence as
• Unit Step
p Sequence
q -
Example: A = 2, ωo = 0.1
• Exponential Sequence –
where A and α are real or complex numbers
• If we write
• period • period
x(t) x[n]
C-to-D
i th
is the normalized
li d di
digital
it l angular
l ffrequency off x[n]
[ ]
• The unit of normalized digital angular frequency ωo is
radians/sample
di / l (Ω o : radians/second)
di / d)
Original PowerPoint slides prepared by S. K. Mitra 2-1-40
© The McGraw-Hill Companies, Inc., 2007
Sampling for Audio CD
• x[n] is a sampled sinusoid
– A list of numbers stored in memory
• Example: audio CD
• CD rate is 44,100 samples per second
– 16
16-bit
bit samples
l
– Stereo uses 2 channels
• Number
N b off b
bytes
t ffor 1 minute
i t iis
– 2 X (16/8) X 60 X 44100 = 10.584 Mbytes
– So,
So a CD
CD-ROM
ROM of 680
680-Mbyte
Mb te can store up
p to abo
aboutt
one-hour music
– What about MP3?
Original PowerPoint slides prepared by S. K. Mitra 2-1-41
© The McGraw-Hill Companies, Inc., 2007
Ambiguity in Sampling
• Sa
Sample
p e tthe
e following
o o g tthree
ee ssignals
g a s at 10
0 Hz
• we obtain
When n is an integer
x[n ] = cos(0.4π n ) cos((0.4π n ) = cos((2.4π n )
Original PowerPoint slides prepared by S. K. Mitra 2-1-44
© The McGraw-Hill Companies, Inc., 2007
Sampling Theorem (1/2)
• Recall
R ll
• Th
Thus if ΩT > 2Ωo, then
th the
th corresponding
di normalized
li d
digital angular frequency ωo of the discrete-time signal
obtained by sampling the parent continuous-time
continuous time
sinusoidal signal will be in the range − π < ω < π
No Aliasing
• The output y[n] is the sum of the input sample x[n] and
the p
previous output
p y[y[n −1]]
• The system cumulatively adds, i.e., it accumulates all
input sample values
• Input-output relation can also be written in the form
• requires
i only
l 2 additions,
dditi 1 multiplication
lti li ti andd storage
t off
the previous running average
• does not require storage of past input data samples
• the filter places more emphasis on current data samples
and less emphasis on past ones as illustrated below
• Factor-of-2 interpolator
• Factor-of-3
Factor of 3 interpolator
• Factor-of-2 interpolator
• Rank-order
R k d sett iis given
i b
by
Median Filter –
• Implemented
p by
y sliding
g a window of odd length
g over the
input sequence {x[n]} one sample at a time
• Output
p y[y[n]] at instant n is the median value of the
samples inside the window centered at n
• Useful 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
the output is
• for
f input
i t x1[n]
[ ] = x[n
[ − no] ,the
th output
t t x1,u[n]
[ ] is
i
then
∑ ∑
2 2
y[ n ] ≤ x[ n ]
n = −∞ n = −∞
• For a lossless system,
system the above inequality is satisfied
with an equal sign for every input
p - Consider the discrete-time system
• Example y defined byy
y[n] =α x[n − N] with N a positive integer
• Its output energy is given by
Is obtained by
will be
or
• Properties
p of convolution
– Commutative property:
– Associative property :
– Distributive property :
Original PowerPoint slides prepared by S. K. Mitra 2-2-75
© The McGraw-Hill Companies, Inc., 2007
Convolution Sum (2/3)
• Interpretation –
– Time-reverse h[k] to form h[-k]
– Shift h[-k]
h[ k] to the right by n sampling periods if n > 0 (or
shift to the left by n sampling periods if n < 0) to form
h[n-k]
[ ]
– Form the product v[k] = x[k]h[n-k]
– Sum all samples p of v[k]
[ ] to develop
p the n-th sample
p of
y[n] of the convolution sum
– Parallel Connection
• It follows
f ll from
f the
th above
b that
th t h2[n]
[ ] = 0 for
f n < 0 and
d
• P
Proof:
f Assume
A h[ ] is
h[n] i a reall sequence
• Since the input sequence x[n] is bounded we have
therefore
• Therefore,
Therefore if S = ∞,
∞ then {y[n]} is not a bounded sequence
Original PowerPoint slides prepared by S. K. Mitra 2-3-102
© The McGraw-Hill Companies, Inc., 2007
Stability Condition of an LTI
Discrete-Time System (3/3)
• Example - Consider a causal LTI discrete-time system
with an impulse response
• This implies
• Thus
or, equivalently,
• Using
U i ththe above
b result:
lt
• We
W gett − br
b xx[0] ≤ rxy[l] ≤ br
b xx[0]
Original PowerPoint slides prepared by S. K. Mitra 2-3-117
© The McGraw-Hill Companies, Inc., 2007
Computation of Correlations (1/2)
• Example - Consider the two finite
finite-length
length sequences
x[n] = [1 3 −2 1 2 −1 4 4 2], y[n] = [2 −1 4 1 −2 3]
rxy[n] rxx[n]
rxy[n]
[ ]
Original PowerPoint slides prepared by S. K. Mitra 2-3-119
© The McGraw-Hill Companies, Inc., 2007
Normalized Forms of Correlation
• Normalized forms of autocorrelation and cross-
correlation are given by
rww[l] rdd[l]
Original PowerPoint slides prepared by S. K. Mitra 2-3-124
© The McGraw-Hill Companies, Inc., 2007