SlideShare a Scribd company logo
1 of 205
Discrete-Time Signals:
Time-Domain Representation
Tania Stathaki
811b
t.stathaki@imperial.ac.uk
What is a signal ?
A signal is a function of an independent
variable such as time, distance, position,
temperature, pressure, etc.
For example…
• Electrical Engineering
voltages/currents in a circuit
speech signals
image signals
• Physics
radiation
• Mechanical Engineering
vibration studies
• Astronomy
space photos
or
• Biomedicine
EEG, ECG, MRI, X-Rays, Ultrasounds
• Seismology
tectonic plate movement, earthquake prediction
• Economics
stock market data
What is DSP?
Mathematical and algorithmic manipulation of discretized and
quantized or naturally digital signals in order to extract the most
relevant and pertinent information that is carried by the signal.
What is a signal?
What is a system?
What is processing?
Signals can be characterized in several ways
Continuous time signals vs. discrete time signals (x(t), x[n]).
Temperature in London / signal on a CD-ROM.
Continuous valued signals vs. discrete signals.
Amount of current drawn by a device / average scores of TOEFL in a school
over years.
–Continuous time and continuous valued : Analog signal.
–Continuous time and discrete valued: Quantized signal.
–Discrete time and continuous valued: Sampled signal.
–Discrete time and discrete values: Digital signal.
Real valued signals vs. complex valued signals.
Resident use electric power / industrial use reactive power.
Scalar signals vs. vector valued (multi-channel) signals.
Blood pressure signal / 128 channel EEG.
Deterministic vs. random signal:
Recorded audio / noise.
One-dimensional vs. two dimensional vs. multidimensional
signals.
Speech / still image / video.
Systems
• For our purposes, a DSP system is one that can mathematically
manipulate (e.g., change, record, transmit, transform) digital
signals.
• Furthermore, we are not interested in processing analog signals
either, even though most signals in nature are analog signals.
Various Types of Processing
Modulation and demodulation.
Signal security.
Encryption and decryption.
Multiplexing and de-multiplexing.
Data compression.
Signal de-noising.
Filtering for noise reduction.
Speaker/system identification.
Signal enhancement –equalization.
Audio processing.
Image processing –image de-noising, enhancement,
watermarking.
Reconstruction.
Data analysis and feature extraction.
Frequency/spectral analysis.
Filtering
• By far the most commonly used DSP operation
Filtering refers to deliberately changing the frequency content of the signal,
typically, by removing certain frequencies from the signals.
For de-noising applications, the (frequency) filter removes those frequencies
in the signal that correspond to noise.
In various applications, filtering is used to focus to that part of the spectrum
that is of interest, that is, the part that carries the information.
• Typically we have the following types of filters
Low-pass (LPF) –removes high frequencies, and retains (passes) low
frequencies.
High-pass (HPF) –removes low frequencies, and retains high frequencies.
Band-pass (BPF) –retains an interval of frequencies within a band, removes
others.
Band-stop (BSF) –removes an interval of frequencies within a band, retains
others.
Notch filter –removes a specific frequency.
A Common Application: Filtering
Components of a DSP System
Components of a DSP System
Components of a DSP System
Analog-to-Digital-to-Analog…?
• Why not just process the signals in continuous time domain? Isn’t it just a waste of time,
money and resources to convert to digital and back to analog?
• Why DSP? We digitally process the signals in discrete domain, because it is
– 􀂪More flexible, more accurate, easier to mass produce.
– 􀂪Easier to design.
• System characteristics can easily be changed by programming.
• Any level of accuracy can be obtained by use of appropriate number
of bits.
– 􀂪More deterministic and reproducible-less sensitive to component values,
etc.
– 􀂪Many things that cannot be done using analog processors can be done
digitally.
• Allows multiplexing, time sharing, multi-channel processing, adaptive filtering.
• Easy to cascade, no loading effects, signals can be stored indefinitely w/o loss.
• Allows processing of very low frequency signals, which requires unpractical
component values in analog world.
Analog-to-Digital-to-Analog…?
• On the other hand, it can be
– 􀂪Slower, sampling issues.
– 􀂪More expensive, increased system complexity,
consumes more power.
• Yet, the advantages far outweigh the
disadvantages. Today, most continuous time
signals are in fact processed in discrete time
using digital signal processors.
Analog-Digital
Examples of analog technology
• photocopiers
• telephones
• audio tapes
• televisions (intensity and color info per scan line)
• VCRs (same as TV)
Examples of digital technology
• Digital computers!
In the next few slides you can see some
real-life signals
Electroencephalogram (EEG) Data
Stock Market Data
Satellite image
Volcano Kamchatka Peninsula, Russia
Satellite image
Volcano in Alaska
Medical Images:
MRI of normal brain
Medical Images:
X-ray knee
Medical Images: Ultrasound
Five-month Foetus (lungs, liver and bowel)
Astronomical images
Discrete-Time Signals:
Time-Domain Representation
• 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
• x[n] defined only for integer values of n and
undefined for noninteger values of n
• Discrete-time signal represented by {x[n]}




 n
• Here, n-th sample is given by
• The spacing T is called the sampling interval or
sampling period
• Inverse of sampling interval T, denoted as , is
called the sampling frequency:
Discrete-Time Signals:
Time-Domain Representation
),
(
)
(
]
[ nT
x
t
x
n
x a
nT
t
a 
 

 ,
1
,
0
,
1
,
2
, 


n
T
F
1
)
( 
 T
FT
Discrete-Time Signals:
Time-Domain Representation
• Two types of discrete-time signals:
- Sampled-data signals in which samples
are continuous-valued
- Digital signals in which samples are
discrete-valued
• Signals in a practical digital signal
processing system are digital signals
obtained by quantizing the sample values
either by rounding or truncation
256x256 64x64
2 Dimensions
From Continuous to Discrete: Sampling
Discrete (Sampled) and Digital (Quantized) Image
Discrete (Sampled) and Digital (Quantized) Image
256x256 256 levels 256x256 32 levels
Discrete (Sampled) and Digital (Quantized) Image
256x256 256 levels 256x256 2 levels
Discrete (Sampled) and Digital (Quantized) Image
Discrete-Time Signals:
Time-Domain Representation
• A discrete-time signal may be a finite-
length or an infinite-length sequence
• Finite-length (also called finite-duration or
finite-extent) sequence is defined only for a
finite time interval:
where and with
• Length or duration of the above finite-
length sequence is
2
1 N
n
N 

1
N


 

2
N 2
1 N
N 
1
1
2 

 N
N
N
Discrete-Time Signals:
Time-Domain Representation
• A right-sided sequence x[n] has zero-
valued samples for
• If a right-sided sequence is called a
causal sequence
,
0
1 
N
1
N
n 
A right-sided sequence
Discrete-Time Signals:
Time-Domain Representation
• A left-sided sequence x[n] has zero-valued
samples for
• If a left-sided sequence is called a
anti-causal sequence
2
N
n 
,
0
2 
N
A left-sided sequence
Operations on Sequences
• A single-input, single-output discrete-time
system operates on a sequence, called the
input sequence, according some prescribed
rules and develops another sequence, called
the output sequence, with more desirable
properties
x[n] y[n]
Input sequence Output sequence
Discrete-time
system
Example of an Operation on a Sequence:
Noise Removal
• For example, the input may be a signal
corrupted with additive noise
• A discrete-time system may be designed to
generate an output by removing the noise
component from the input
• In most cases, the operation defining a
particular discrete-time system is composed
of some basic operations
Basic Operations
• Product (modulation) operation:
– Modulator
• An application is the generation of a finite-length
sequence from an infinite-length sequence by
multiplying the latter with a finite-length sequence
called an window sequence
• Process called windowing

x[n] y[n]
w[n]
]
[
]
[
]
[ n
w
n
x
n
y 

Basic Operations
• Addition operation:
– Adder
• Multiplication operation
– Multiplier
]
[
]
[
]
[ n
w
n
x
n
y 

A
x[n] y[n] ]
[
]
[ n
x
A
n
y 

x[n] y[n]
w[n]

Basic Operations
• Time-shifting operation:
where N is an integer
• If N > 0, it is a delay operation
– Unit delay
• If N < 0, it is an advance operation
– Unit advance
]
[
]
[ N
n
x
n
y 

y[n]
x[n] z
1

z y[n]
x[n] ]
[
]
[ 1

 n
x
n
y
]
[
]
[ 1

 n
x
n
y
Basic Operations
• Time-reversal (folding) operation:
• Branching operation: Used to provide
multiple copies of a sequence
]
[
]
[ n
x
n
y 

x[n] x[n]
x[n]
Combinations of Basic
Operations
• Example -
]
3
[
]
2
[
]
1
[
]
[
]
[ 4
3
2
1 





 n
x
n
x
n
x
n
x
n
y 



Sampling Rate Alteration
• Employed to generate a new sequence y[n]
with a sampling rate higher or lower
than that of the sampling rate of a given
sequence x[n]
• Sampling rate alteration ratio is
• If R > 1, the process called interpolation
• If R < 1, the process called decimation
T
F
'
T
F
T
T
F
F
R
'

Sampling Rate Alteration
• In up-sampling by an integer factor L > 1,
equidistant zero-valued samples are
inserted by the up-sampler between each
two consecutive samples of the input
sequence x[n]:
1

L


 



otherwise
,
0
,
2
,
,
0
],
/
[
]
[

L
L
n
L
n
x
n
xu
L
]
[n
x ]
[n
xu
Sampling Rate Alteration
• An example of the up-sampling operation
0 10 20 30 40 50
-1
-0.5
0
0.5
1
Output sequence up-sampled by 3
Time index n
Amplitude
0 10 20 30 40 50
-1
-0.5
0
0.5
1
Input Sequence
Time index n
Amplitude
Sampling Rate Alteration
• In down-sampling by an integer factor
M > 1, every M-th samples of the input
sequence are kept and in-between
samples are removed:
1

M
]
[
]
[ nM
x
n
y 
]
[n
x ]
[n
y
M
Sampling Rate Alteration
• An example of the down-sampling
operation
0 10 20 30 40 50
-1
-0.5
0
0.5
1
Output sequence down-sampled by 3
Amplitude
Time index n
0 10 20 30 40 50
-1
-0.5
0
0.5
1
Input Sequence
Time index n
Amplitude
Classification of Sequences
Based on Symmetry
• Conjugate-symmetric sequence:
If x[n] is real, then it is an even sequence
]
[
*
]
[ n
x
n
x 

An even sequence
Classification of Sequences
Based on Symmetry
• Conjugate-antisymmetric sequence:
If x[n] is real, then it is an odd sequence
]
[
*
]
[ n
x
n
x 


An odd sequence
Classification of Sequences
Based on Symmetry
• It follows from the definition that for a
conjugate-symmetric sequence {x[n]}, x[0]
must be a real number
• Likewise, it follows from the definition that
for a conjugate anti-symmetric sequence
{y[n]}, y[0] must be an imaginary number
• From the above, it also follows that for an
odd sequence {w[n]}, w[0] = 0
• Any complex sequence can be expressed as a
sum of its conjugate-symmetric part and its
conjugate-antisymmetric part:
where
Classification of Sequences
Based on Symmetry
 
]
[
*
]
[
]
[ 2
1 n
x
n
x
n
xcs 


 
]
[
*
]
[
]
[ 2
1 n
x
n
x
n
xca 


]
[
]
[
]
[ n
x
n
x
n
x ca
cs 

Classification of Sequences
Based on Symmetry
• Any real sequence can be expressed as a
sum of its even part and its odd part:
where
]
[
]
[
]
[ n
x
n
x
n
x od
ev 

 
]
[
]
[
]
[ 2
1 n
x
n
x
n
xev 


 
]
[
]
[
]
[ 2
1 n
x
n
x
n
xod 


Classification of Sequences
Based on Periodicity
• A sequence satisfying
is called a periodic sequence with a period N where N is
a positive integer and k is any integer
• Smallest value of N satisfying
is called the fundamental period
• A sequence not satisfying the periodicity condition is
called an aperiodic sequence
]
[
~ n
x ]
[
~
]
[
~ kN
n
x
n
x 

]
[
~
]
[
~ kN
n
x
n
x 

Classification of Sequences:
Energy and Power Signals
• Total energy of a sequence x[n] is defined by
• An infinite length sequence with finite sample
values may or may not have finite energy
• A finite length sequence with finite sample
values has finite energy





n
n
x 2
x ]
[

Classification of Sequences:
Energy and Power Signals
• The average power of an aperiodic
sequence is defined by
• We define the energy of a sequence x[n]
over a finite interval as







K
K
n
K
K
n
x
P
2
1
2
1
x ]
[
lim
K
n
K 






K
K
n
K
x n
x
2
, ]
[

Classification of Sequences:
Energy and Power Signals
• The average power of a periodic sequence
with a period N is given by
• The average power of an infinite-length
sequence may be finite or infinite




1
0
2
1
N
n
N
x n
x
P ]
[
~
]
[
~ n
x
Classification of Sequences:
Energy and Power Signals
• Example - Consider the causal sequence
defined by
• Note: x[n] has infinite energy
• Its average power is given by
5
.
4
1
2
)
1
(
9
lim
1
9
1
2
1
lim
0

















 K
K
K
P
K
K
n
K
x







0
0
0
1
3
n
n
n
x
n
,
,
)
(
]
[
Classification of Sequences:
Energy and Power Signals
• An infinite energy signal with finite average
power is called a power signal
Example - A periodic sequence which has a
finite average power but infinite energy
• A finite energy signal with zero average
power is called an energy signal
Classification of Sequences:
Deterministic-Stochastic
Other Types of Classifications
• A sequence x[n] is said to be bounded if
• Example - The sequence is a
bounded sequence as


 x
B
n
x ]
[
n
n
x 
 3
.
0
cos
]
[
1
3
.
0
cos
]
[ 

 n
n
x
Other Types of Classifications
• A sequence x[n] is said to be absolutely
summable if
• Example - The sequence
is an absolutely summable sequence as
 




n
n
x ]
[






0
0
0
3
0
n
n
n
y
n
,
,
.
]
[








42857
1
3
0
1
1
3
0
0
.
.
.
n
n
Other Types of Classifications
• A sequence x[n] is said to be square-
summable if
• Example - The sequence
is square-summable but not absolutely
summable
 




n
n
x
2
]
[
n
n
n
h 

4
.
0
sin
]
[
Basic Sequences
• Unit sample sequence -
• Unit step sequence -






0
,
0
0
,
1
]
[
n
n
n







0
,
0
0
,
1
]
[
n
n
n

Basic Sequences
• Real sinusoidal sequence -
where A is the amplitude, is the angular
frequency, and is the phase of x[n]
Example -
)
cos(
]
[ 


 n
A
n
x o
o


0 10 20 30 40
-2
-1
0
1
2
Time index n
Amplitude

o
= 0.1
Basic Sequences
• Complex exponential sequence -
where A and are real or complex numbers
• If we write
then we can express
where
,
]
[ n
A
n
x 
 



 n

,
)
( o
o j
e 



 ,

 j
e
A
A
],
[
]
[
]
[ )
(
n
x
j
n
x
e
e
A
n
x im
re
n
j
j o
o 

 



),
cos(
]
[ 


 
n
e
A
n
x o
n
re
o
)
sin(
]
[ 


 
n
e
A
n
x o
n
im
o
Basic Sequences
• and of a complex exponential
sequence are real sinusoidal sequences with
constant , growing , and
decaying amplitudes for n > 0
]
[n
xre ]
[n
xim
 
0

o  
0

o
 
0

o
n
j
n
x )
exp(
]
[ 6
12
1 



0 10 20 30 40
-1
-0.5
0
0.5
1
Time index n
Amplitude
Real part
0 10 20 30 40
-1
-0.5
0
0.5
1
Time index n
Amplitude
Imaginary part
Basic Sequences
• Real exponential sequence -
where A and  are real or complex numbers
,
]
[ n
A
n
x 
 



 n
0 5 10 15 20 25 30
0
10
20
30
40
50
Time index n
Amplitude
 = 1.2
0 5 10 15 20 25 30
0
5
10
15
20
Time index n
Amplitude
 = 0.9
Basic Sequences
• Sinusoidal sequence and
complex exponential sequence
are periodic sequences of period N if
where N and r are positive integers
• Smallest value of N satisfying
is the fundamental period of the sequence
• To verify the above fact, consider
)
cos( 

 n
A o
)
exp( n
j
B o

r
N
o 

 2
r
N
o 

 2
)
cos(
]
[
1 


 n
n
x o
)
)
(
cos(
]
[
2 



 N
n
n
x o
Basic Sequences
• Now
which will be equal to
only if
and
• These two conditions are met if and only if
or
)
)
(
cos(
]
[
2 



 N
n
n
x o
N
n
N
n o
o
o
o 








 sin
)
sin(
cos
)
cos(
]
[
)
cos( 1 n
x
n
o 



0
sin 
 N
o 1
cos 
 N
o
r
N
o 

 2 r
N
o



2
Basic Sequences
• If is a noninteger rational number, then
the period will be a multiple of
• Otherwise, the sequence is aperiodic
• Example - is an aperiodic
sequence
o

/
2
o

/
2
)
3
sin(
]
[ 

 n
n
x
Basic Sequences
• Here
• Hence period for r = 0
0

o
1
0
2



r
N
0 10 20 30 40
0
0.5
1
1.5
2
Time index n
Amplitude

0
= 0
Basic Sequences
• Here
• Hence for r = 1


 1
.
0
o
20
1
.
0
2



r
N
0 10 20 30 40
-2
-1
0
1
2
Time index n
Amplitude

0
= 0.1
Basic Sequences
• Property 1 - Consider and
with and
where k is any positive
integer
• If then x[n] = y[n]
• Thus, x[n] and y[n] are indistinguishable
)
exp(
]
[ 1n
j
n
x 

)
exp(
]
[ 2n
j
n
y 
 


 1
0
)
1
(
2
2 2 




 k
k
,
2
1
2 k





Basic Sequences
• Property 2 - The frequency of oscillation of
increases as increases from 0
to , and then decreases as increases from
to
• Thus, frequencies in the neighborhood of
are called low frequencies, whereas,
frequencies in the neighborhood of are
called high frequencies
)
cos( n
A o
 o

o

 
2



0


Basic Sequences
• Because of Property 1, a frequency in
the neighborhood of  = 2 k is
indistinguishable from a frequency
in the neighborhood of  = 0
and a frequency in the neighborhood of
is indistinguishable from a
frequency in the
neighborhood of  = 
o

k
o 

 2
o

)
1
2
( 


 k
o
)
1
2
( 


 k
Basic Sequences
• Frequencies in the neighborhood of  = 2 k
are usually called low frequencies
• Frequencies in the neighborhood of
 =  (2k+1) are usually called high
frequencies
• is a low-
frequency signal
• is a high-
frequency signal
)
9
.
1
cos(
)
1
.
0
cos(
]
[
1 n
n
n
v 



)
2
.
1
cos(
)
8
.
0
cos(
]
[
2 n
n
n
v 



Basic Sequences
• An arbitrary sequence can be represented in
the time-domain as a weighted sum of some
basic sequence and its delayed (advanced)
versions
]
2
[
]
1
[
5
.
1
]
2
[
5
.
0
]
[ 




 n
n
n
n
x 


]
6
[
75
.
0
]
4
[ 


 n
n 

The Sampling Process
• Often, a discrete-time sequence x[n] is
developed by uniformly sampling a
continuous-time signal as indicated
below
• The relation between the two signals is
)
(t
xa
),
(
)
(
]
[ nT
x
t
x
n
x a
nT
t
a 
 

 ,
2
,
1
,
0
,
1
,
2
, 


n
The Sampling Process
• Time variable t of is related to the time
variable n of x[n] only at discrete-time
instants given by
with denoting the sampling
frequency and
denoting the sampling angular
frequency
)
(t
xa
T
T
n
n
F
n
nT
t




 2
n
t
T
FT /
1

T
T F


 2
• Consider the continuous-time signal
• The corresponding discrete-time signal is
where
is the normalized digital angular frequency
of x[n]
The Sampling Process
)
cos(
)
2
cos(
)
( 






 t
A
t
f
A
t
x o
o
)
2
cos(
)
cos(
]
[ 








 n
A
nT
A
n
x
T
o
o
)
cos( 


 n
A o
T
o
T
o
o 





 /
2
Hertz
seconds
radians per second
radians per sample
The Sampling Process
• If the unit of sampling period T is in
seconds
• The unit of normalized digital angular
frequency is radians/sample
• The unit of normalized analog angular
frequency is radians/second
• The unit of analog frequency is hertz
(Hz)
o

o

o
f
The Sampling Process
• The three continuous-time signals
of frequencies 3 Hz, 7 Hz, and 13 Hz, are
sampled at a sampling rate of 10 Hz, i.e.
with T = 0.1 sec. generating the three
sequences
)
6
cos(
)
(
1 t
t
g 

)
14
cos(
)
(
2 t
t
g 

)
26
cos(
)
(
3 t
t
g 

)
6
.
2
cos(
]
[
3 n
n
g 

)
6
.
0
cos(
]
[
1 n
n
g 
 )
4
.
1
cos(
]
[
2 n
n
g 

The Sampling Process
• Plots of these sequences (shown with circles)
and their parent time functions are shown
below:
• Note that each sequence has exactly the same
sample value for any given n
0 0.2 0.4 0.6 0.8 1
-1
-0.5
0
0.5
1
time
Amplitude
The Sampling Process
• This fact can also be verified by observing that
• As a result, all three sequences are identical
and it is difficult to associate a unique
continuous-time function with each of these
sequences
  )
6
.
0
cos(
)
6
.
0
2
(
cos
)
4
.
1
cos(
]
[
2 n
n
n
n
g 







  )
6
.
0
cos(
)
6
.
0
2
(
cos
)
6
.
2
cos(
]
[
3 n
n
n
n
g 







The Sampling Process
• The above phenomenon of a continuous-
time signal of higher frequency acquiring
the identity of a sinusoidal sequence of
lower frequency after sampling is called
aliasing
The Sampling Process
• Since there are an infinite number of
continuous-time signals that can lead to the
same sequence when sampled periodically,
additional conditions need to imposed so
that the sequence can
uniquely represent the parent continuous-
time signal
• In this case, can be fully recovered
from {x[n]}
)}
(
{
]}
[
{ nT
x
n
x a

)
(t
xa
)
(t
xa
The Sampling Process
• Example - Determine the discrete-time
signal v[n] obtained by uniformly sampling
at a sampling rate of 200 Hz the continuous-
time signal
• Note: is composed of 5 sinusoidal
signals of frequencies 30 Hz, 150 Hz, 170
Hz, 250 Hz and 330 Hz
)
340
cos(
2
)
300
sin(
3
)
60
cos(
6
)
( t
t
t
t
va 





)
660
sin(
10
)
500
cos(
4 t
t 



)
(t
va
The Sampling Process
• The sampling period is
• The generated discrete-time signal v[n] is
thus given by
sec
005
.
0
200
1


T
)
7
.
1
cos(
2
)
5
.
1
sin(
3
)
3
.
0
cos(
6
]
[ n
n
n
n
v 





)
(
)
( )
3
.
0
2
(
cos
2
)
5
.
0
2
(
sin
3
)
3
.
0
cos(
6 n
n
n 









)
3
.
3
sin(
10
)
5
.
2
cos(
4 n
n 



)
(
)
( )
7
.
0
4
(
sin
10
)
5
.
0
2
(
cos
4 n
n 







The Sampling Process
• Note: v[n] is composed of 3 discrete-time
sinusoidal signals of normalized angular
frequencies: 0.3, 0.5, and 0.7
)
5
.
0
cos(
4
)
3
.
0
cos(
2
)
5
.
0
sin(
3
)
3
.
0
cos(
6 n
n
n
n 







)
7
.
0
sin(
10 n


)
7
.
0
sin(
10
)
6435
.
0
5
.
0
cos(
5
)
3
.
0
cos(
8 n
n
n 






The Sampling Process
• Note: An identical discrete-time signal is
also generated by uniformly sampling at a
200-Hz sampling rate the following
continuous-time signals:
)
140
sin(
10
)
6435
.
0
100
cos(
5
)
60
cos(
8
)
( t
t
t
t
a
w 






)
260
sin(
10
)
100
cos(
4
)
60
cos(
2
)
( t
t
t
t
a
g 





)
700
sin(
3
)
460
cos(
6 t
t 



The Sampling Process
• Recall
• Thus if , then the corresponding
normalized digital angular frequency of
the discrete-time signal obtained by
sampling the parent continuous-time
sinusoidal signal will be in the range
• No aliasing
T
o
o





2
o

o
T 

 2






The Sampling Process
• On the other hand, if , the
normalized digital angular frequency will
foldover into a lower digital frequency
in the range
because of aliasing
• Hence, to prevent aliasing, the sampling
frequency should be greater than 2
times the frequency of the sinusoidal
signal being sampled
o
T 

 2













 2
/
2 T
o
o
T

o

The Sampling Process
• Generalization: Consider an arbitrary
continuous-time signal composed of a
weighted sum of a number of sinusoidal
signals
• can be represented uniquely by its
sampled version {x[n]} if the sampling
frequency is chosen to be greater than 2
times the highest frequency contained in
)
(t
xa
)
(t
xa
T

)
(t
xa
The Sampling Process
• The condition to be satisfied by the
sampling frequency to prevent aliasing is
called the sampling theorem
• A formal proof of this theorem will be
presented later
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:
System
time
Discrete
x[n] y[n]
Input sequence Output sequence
Discrete-Time Systems:
Examples
• 2-input, 1-output discrete-time systems -
Modulator, adder
• 1-input, 1-output discrete-time systems -
Multiplier, unit delay, unit advance
Discrete-Time Systems: Examples
• Accumulator -
• The output y[n] at time instant n is the sum
of the input sample x[n] at time instant n
and the previous output at time
instant which is the sum of all
previous input sample values from to
• The system cumulatively adds, i.e., it
accumulates all input sample values




n
x
n
y

]
[
]
[ ]
[
]
1
[
]
[
]
[
1
n
x
n
y
n
x
x
n











]
1
[ 
n
y
,
1

n
1

n


Discrete-Time Systems:Examples
• Accumulator - Input-output relation can
also be written in the form
• The second form is used for a causal input
sequence, in which case is called
the initial condition








n
x
x
n
y
0
1
]
[
]
[
]
[




,
]
[
]
1
[
0





n
x
y


]
1
[
y
0

n
Discrete-Time Systems:Examples
• M-point moving-average system -
• Used in smoothing random variations in
data
• An application: Consider
x[n] = s[n] + d[n],
where s[n] is the signal corrupted by a noise
d[n]
 



1
0
]
[
1
]
[
M
k
k
n
x
M
n
y
d[n] - random signal
],
)
9
.
0
(
[
2
]
[ n
n
n
s 
Discrete-Time Systems:Examples
0 10 20 30 40 50
-2
0
2
4
6
8
Time index n
Amplitude
d[n]
s[n]
x[n]
0 10 20 30 40 50
0
1
2
3
4
5
6
7
Time index n
Amplitude
s[n]
y[n]
Discrete-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
Discrete-Time Systems:
Examples
• Factor-of-2 interpolator -
• Factor-of-3 interpolator -
 
]
1
[
]
1
[
2
1
]
[
]
[ 



 n
x
n
x
n
x
n
y u
u
u
 
]
2
[
]
1
[
3
1
]
[
]
[ 



 n
x
n
x
n
x
n
y u
u
u
 
]
1
[
]
2
[
3
2 


 n
x
n
x u
u
Discrete-Time Systems:
Classification
• Linear System
• Shift-Invariant System
• Causal System
• Stable System
• Passive and Lossless Systems
Linear Discrete-Time Systems
• Definition - If is the output due to an
input and is the output due to an
input then for an input
the output is given by
• Above property must hold for any arbitrary
constants and and for all possible
inputs and
]
[
1 n
y
]
[
1 n
x
]
[
2 n
x
]
[
2 n
y
]
[
]
[
]
[ 2
1 n
x
n
x
n
x 
 

]
[
]
[
]
[ 2
1 n
y
n
y
n
y 
 

 ,

]
[
1 n
x ]
[
2 n
x
Accumulator:
Linear Discrete-Time System?
• Accumulator -
• For an input
the output is
• Hence, the above system is linear








n
n
x
n
y
x
n
y



 ]
[
]
[
,
]
[
]
[ 2
2
1
1
]
[
]
[
]
[ 2
1 n
x
n
x
n
x 
 

 
 



n
x
x
n
y


 ]
[
]
[
]
[ 2
1 

]
[
]
[
]
[
]
[ 2
1
2
1 n
y
n
y
x
x
n
n



 








 



Causal Accumulator:
Linear Discrete-Time System?
• The outputs and for inputs
and are given by
• The output y[n] for an input
is given by





n
x
y
n
y
0
1
1
1 1

]
[
]
[
]
[





n
x
y
n
y
0
2
2
2 1

]
[
]
[
]
[
]
[n
y1 ]
[n
y2
]
[n
x2
]
[n
x1
]
[
]
[ n
x
n
x 2
1 
 






n
x
x
y
n
y
0
2
1
1


 ])
[
]
[
(
]
[
]
[ 

Causal Accumulator cont.:
Linear Discrete-Time System?
• Now
• Thus if
]
[
]
[ n
y
n
y 2
1 
 
)
]
[
]
[
( 




n
x
y
0
2
2 1



)
]
[
]
[
( 




n
x
y
0
1
1 1



)
]
[
]
[
(
])
[
]
[
( 









n
n
x
x
y
y
0
2
0
1
2
1 1
1



 



]
[
]
[
]
[ n
y
n
y
n
y 2
1 
 

]
[
]
[
]
[ 1
1
1 2
1 



 y
y
y 

Causal Accumulator cont.:
Linear Discrete-Time System?
• For the causal accumulator to be linear the
condition
must hold for all initial conditions ,
, , and all constants  and 
• This condition cannot be satisfied unless the
accumulator is initially at rest with zero
initial condition
• For nonzero initial condition, the system is
nonlinear
]
[
]
[
]
[ 1
1
1 2
1 



 y
y
y 

]
[ 1

y
]
[ 1
1 
y ]
[ 1
2 
y
A Nonlinear Discrete-Time System
• Consider
• Outputs and for inputs
and are given by
]
[
]
[
]
[
]
[ 1
1
2



 n
x
n
x
n
x
n
y
]
[n
y1
]
[
]
[
]
[
]
[ 1
1 1
1
2
1
1 


 n
x
n
x
n
x
n
y
]
[n
y2
]
[
]
[
]
[
]
[ 1
1 2
2
2
2
2 


 n
x
n
x
n
x
n
y
]
[n
x2
]
[n
x1
A Nonlinear Discrete-Time System cont.
• Output y[n] due to an input
is given by
]
[
]
[ n
x
n
x 2
1 
 
2
2
1 ]}
[
]
[
{
]
[ n
x
n
x
n
y 
 

]}
[
]
[
]}{
[
]
[
{ 1
1
1
1 2
1
2
1 





 n
x
n
x
n
x
n
x 



]}
[
]
[
]
[
{ 1
1 1
1
2
1
2



 n
x
n
x
n
x

]}
[
]
[
]
[
{ 1
1 2
2
2
2
2



 n
x
n
x
n
x

]}
[
]
[
]
[
]
[
]
[
]
[
{ 1
1
1
1
2 2
1
2
1
2
1 





 n
x
n
x
n
x
n
x
n
x
n
x

A Nonlinear Discrete-Time System cont.
• On the other hand
• Hence, the system is nonlinear
]
[
]
[ n
y
n
y 2
1 
 
]}
[
]
[
]
[
{ 1
1 1
1
2
1 


 n
x
n
x
n
x

]}
[
]
[
]
[
{ 1
1 2
2
2
2 


 n
x
n
x
n
x

]
[n
y

Shift (Time)-Invariant System
• For a shift-invariant system, if is the
response to an input , then the response to
an input .
is simply
where is any positive or negative integer
• The above relation must hold for any arbitrary
input and its corresponding output
• If n is discrete time, the above property is called
time-invariance property
]
[n
y1
]
[n
x1
]
[
]
[ o
n
n
x
n
x 
 1
]
[
]
[ o
n
n
y
n
y 
 1
o
n
Up-Sampler:
Shift-Invariant System?
• Example - Consider the up-sampler with an
input-output relation given by
• For an input the output
is given by


 



otherwise
,
.....
,
,
,
],
/
[
]
[
0
2
0 L
L
n
L
n
x
n
xu
]
[
]
[ o
n
n
x
n
x 

1 ]
[
, n
x u
1


 



otherwise
,
.....
,
,
,
],
/
[
]
[
, 0
2
0
1
1
L
L
n
L
n
x
n
x u


 




otherwise
,
.....
,
,
,
],
/
)
[(
0
2
0 L
L
n
L
Ln
n
x o
Up-Sampler:
Shift-Invariant System?
• However from the definition of the up-sampler
• Hence, the up-sampler is a time-varying system
]
[ o
u n
n
x 


 




otherwise
,
.....
,
,
,
],
/
)
[(
0
2L
n
L
n
n
n
L
n
n
x o
o
o
o
]
[
, n
x u
1

Linear Time-Invariant 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
Causal System
• In a causal system, the -th output sample
depends only on input samples x[n]
for and does not depend on input
samples for
• Let and be the responses of a
causal discrete-time system to the inputs
and , respectively
o
n
o
n
n 
o
n
n 
]
[ o
n
y
]
[n
y1 ]
[n
y2
]
[n
x2
]
[n
x1
Causal System
• Then
for n < N
implies also that
for n < N
• For a causal system, changes in output
samples do not precede changes in the input
samples
]
[
]
[ 2
1 n
x
n
x 
]
[
]
[ 2
1 n
y
n
y 
Causal System
• Examples of causal systems:
• Examples of noncausal systems:
]
[
]
[
]
[
]
[
]
[ 3
2
1 4
3
2
1 





 n
x
n
x
n
x
n
x
n
y 



]
[
]
[
]
[
]
[ 2
1 2
1
0 



 n
x
b
n
x
b
n
x
b
n
y
]
[
]
[ 2
1 2
1 


 n
y
a
n
y
a
]
[
]
[
]
[ n
x
n
y
n
y 

 1
])
[
]
[
(
]
[
]
[ 1
1
2
1




 n
x
n
x
n
x
n
y u
u
u
Causal System
• A noncausal system can be implemented as
a causal system by delaying the output by
an appropriate number of samples
• For example a causal implementation of the
factor-of-2 interpolator is given by
])
[
]
[
(
]
[
]
[ n
x
n
x
n
x
n
y u
u
u 



 2
1
2
1
Stable System
• There are various definitions of stability
• We consider here the bounded-input,
bounded-output (BIBO) stability
• If y[n] is the response to an input x[n] and if
for all values of n
then
for all values of n
x
B
n
x 
]
[
y
B
n
y 
]
[
Stable System
• Example - The M-point moving average
filter is BIBO stable:
• For a bounded input we have





1
0
1
M
k
M
k
n
x
n
y ]
[
]
[
x
B
n
x 
]
[










1
0
1
1
0
1
M
k
M
M
k
M
k
n
x
k
n
x
n
y ]
[
]
[
]
[
x
x
M
B
MB 
 )
(
1
Passive and Lossless Systems
• A discrete-time system is defined to be
passive if, for every finite-energy input x[n],
the output y[n] has, at most, the same energy,
i.e.
• For a lossless system, the above inequality is
satisfied with an equal sign for every input


 






 n
n
n
x
n
y
2
2
]
[
]
[
Passive and Lossless Systems
• Example - Consider the discrete-time
system defined by with N
a positive integer
• Its output energy is given by
• Hence, it is a passive system if and is
a lossless system if
]
[
]
[ N
n
x
n
y 










n
n
n
x
n
y
2
2
2
]
[
]
[ 
1


1


Impulse and Step Responses
• The response of a discrete-time system to a
unit sample sequence {[n]} is called the
unit sample response or simply, the
impulse response, and is denoted by {h[n]}
• The response of a discrete-time system to a
unit step sequence {[n]} is called the unit
step response or simply, the step response,
and is denoted by {s[n]}
Impulse Response
• Example - The impulse response of the
system
is obtained by setting x[n] = [n] resulting
in
• The impulse response is thus a finite-length
sequence of length 4 given by
]
[
]
[
]
[
]
[
]
[ 3
2
1 4
3
2
1 





 n
x
n
x
n
x
n
x
n
y 



]
[
]
[
]
[
]
[
]
[ 3
2
1 4
3
2
1 





 n
n
n
n
n
h 







}
,
,
,
{
]}
[
{ 4
3
2
1 





n
h
Impulse Response
• Example - The impulse response of the
discrete-time accumulator
is obtained by setting x[n] = [n] resulting
in




n
x
n
y

]
[
]
[
]
[
]
[
]
[ n
n
h
n

 
 




Impulse Response
• Example - The impulse response {h[n]} of
the factor-of-2 interpolator
is obtained by setting and is
given by
• The impulse response is thus a finite-length
sequence of length 3:
])
[
]
[
(
]
[
]
[ 1
1
2
1




 n
x
n
x
n
x
n
y u
u
u
])
[
]
[
(
]
[
]
[ 1
1
2
1




 n
n
n
n
h 


}
.
,
.
{
]}
[
{ 5
0
1
5
0


n
h
]
[
]
[ n
n
xu 

Time-Domain Characterization
of LTI Discrete-Time System
• Input-Output Relationship -
It can be shown that a consequence of the
linear, time-invariance property is that an
LTI discrete-time system is completely
characterized by its impulse response
• Knowing the impulse response one
can compute the output of the system for
any arbitrary input
Time-Domain Characterization
of LTI Discrete-Time System
• Let h[n] denote the impulse response of a
LTI discrete-time system
• We compute its output y[n] for the input:
• As the system is linear, we can compute its
outputs for each member of the input
separately and add the individual outputs to
determine y[n]
]
5
[
75
.
0
]
2
[
]
1
[
5
.
1
]
2
[
5
.
0
]
[ 










 n
n
n
n
n
x
Time-Domain Characterization
of LTI Discrete-Time System
• Since the system is time-invariant
input output
]
2
[
]
2
[ 


 n
h
n
]
1
[
]
1
[ 


 n
h
n
]
2
[
]
2
[ 


 n
h
n
]
5
[
]
5
[ 


 n
h
n
Time-Domain Characterization
of LTI Discrete-Time System
• Likewise, as the system is linear
• Hence because of the linearity property we
get
]
5
[
75
.
0
]
5
[
75
.
0 


 n
h
n
input output
]
2
[
5
.
0
]
2
[
5
.
0 


 n
h
n
]
2
[
]
2
[ 




 n
h
n
]
1
[
5
.
1
]
1
[
5
.
1 


 n
h
n
]
[
.
]
[
.
]
[ 1
5
1
2
5
0 


 n
h
n
h
n
y
]
[
.
]
[ 5
75
0
2 


 n
h
n
h
Time-Domain Characterization
of LTI Discrete-Time System
• Now, any arbitrary input sequence x[n] can
be expressed as a linear combination of
delayed and advanced unit sample
sequences in the form
• The response of the LTI system to an input
will be
 





k
k
n
k
x
n
x ]
[
]
[
]
[
]
[
]
[ k
n
k
x 
 ]
[
]
[ k
n
h
k
x 
Time-Domain Characterization
of LTI Discrete-Time System
• Hence, the response y[n] to an input
will be
which can be alternately written as
 





k
k
n
k
x
n
x ]
[
]
[
]
[
 




k
k
n
h
k
x
n
y ]
[
]
[
]
[






k
k
h
k
n
x
n
y ]
[
]
[
]
[
Convolution Sum
• The summation
is called the convolution sum of the
sequences x[n] and h[n] and represented
compactly as












k
k
n
h
k
n
x
k
n
h
k
x
n
y ]
[
]
[
]
[
]
[
]
[
y[n] = x[n] h[n]
*
Convolution Sum
• Properties -
• Commutative property:
• Associative property :
• Distributive property :
x[n] h[n] = h[n] x[n]
* *
(x[n] h[n]) y[n] = x[n] (h[n] y[n])
*
*
*
*
x[n] (h[n] + y[n]) = x[n] h[n] + x[n] y[n]
*
* *
Simple Interconnection
Schemes
• Two simple interconnection schemes are:
• Cascade Connection
• Parallel Connection
Cascade Connection
• Impulse response h[n] of the cascade of two
LTI discrete-time systems with impulse
responses and is given by
]
[n
h1
]
[n
h2
]
[n
h1 ]
[n
h2

]
[
]
[ n
h
n
h 1
 ]
[n
h2
]
[n
h1 *

]
[n
h1 ]
[n
h2
]
[n
h2
]
[
]
[ n
h
n
h 1
 *
Cascade Connection
• Note: The ordering of the systems in the
cascade has no effect on the overall impulse
response because of the commutative
property of convolution
• A cascade connection of two stable systems
is stable
• A cascade connection of two passive
(lossless) systems is passive (lossless)
Cascade Connection
• An application is in the development of an
inverse system
• If the cascade connection satisfies the
relation
then the LTI system is said to be the
inverse of and vice-versa
]
[n
h1
]
[n
h2
]
[n
h2
]
[
1 n
h ]
[n


*
Cascade Connection
• An application of the inverse system
concept is in the recovery of a signal x[n]
from its distorted version appearing at
the output of a transmission channel
• If the impulse response of the channel is
known, then x[n] can be recovered by
designing an inverse system of the channel
]
[
ˆ n
x
]
[n
h2
]
[n
h1
]
[n
x ]
[n
x
channel inverse system
]
[n
x
^
]
[n
h2
]
[n
h1 ]
[n


*
Cascade Connection
• Example - Consider the discrete-time
accumulator with an impulse response [n]
• Its inverse system satisfy the condition
• It follows from the above that for
n < 0 and
for
0
2 
]
[n
h
1
1
2 
]
[
h
0
0
2 


n
h

]
[ 2

n
]
[n
h2
]
[n
 ]
[n


*
Cascade Connection
• Thus the impulse response of the inverse
system of the discrete-time accumulator is
given by
which is called a backward difference
system
]
1
[
]
[
]
[
2 



 n
n
n
h
Parallel Connection
• Impulse response h[n] of the parallel
connection of two LTI discrete-time systems
with impulse responses and
is given by
]
[n
h2
]
[n
h1
 ]
[
]
[ n
h
n
h 1
 ]
[n
h2
]
[n
h1
 
]
[n
h1
]
[n
h2
]
[
]
[
]
[ n
h
n
h
n
h 2
1 

Simple Interconnection Schemes
• Consider the discrete-time system where
]
[n
h2
]
[n
h1 

]
[n
h4
]
[n
h3
],
1
[
5
.
0
]
[
]
[
1 



 n
n
n
h
],
1
[
25
.
0
]
[
5
.
0
]
[
2 



 n
n
n
h
],
[
2
]
[
3 n
n
h 

]
[
)
5
.
0
(
2
]
[
4 n
n
h n



Simple Interconnection Schemes
• Simplifying the block-diagram we obtain
]
[n
h2
]
[n
h1 
]
[
]
[ 4
3 n
h
n
h 
]
[n
h1 
])
[
]
[
(
]
[ 4
3
2 n
h
n
h
n
h 
*

Simple Interconnection Schemes
• Overall impulse response h[n] is given by
• Now,
]
[
]
[
]
[
]
[
]
[ n
h
n
h
n
h
n
h
n
h 4
2
3
2
1 


])
[
]
[
(
]
[
]
[
]
[ n
h
n
h
n
h
n
h
n
h 4
3
2
1 

 *
* *
]
[
2
])
1
[
]
[
(
]
[
]
[
4
1
2
1
3
2 n
n
n
n
h
n
h 





]
1
[
]
[
2
1 



 n
n
* *
Simple Interconnection Schemes
• Therefore
]
1
[
)
(
]
[
)
( 1
2
1
2
1
2
1 




  n
n n
n
]
1
[
)
(
]
[
)
( 2
1
2
1 




 n
n n
n
]
[
]
[
)
(2
1 n
n
n 





]
[
]
[
]
1
[
]
[
]
1
[
]
[
]
[ 2
1
2
1 n
n
n
n
n
n
n
h 













 
]
[
)
(
2
])
1
[
]
[
(
]
[
]
[ 2
1
4
1
2
1
4
2 n
n
n
n
h
n
h n






* *
BIBO Stability Condition of an
LTI Discrete-Time System
• BIBO Stability Condition - A discrete-time
is BIBO stable if the output sequence {y[n]}
remains bounded for all bounded input
sequence {x[n]}
• An LTI discrete-time system is BIBO stable
if and only if its impulse response sequence
{h[n]} is absolutely summable, i.e.


 



n
n
h ]
[
S
BIBO Stability Condition of an
LTI Discrete-Time System
• Proof: Assume h[n] is a real sequence
• Since the input sequence x[n] is bounded we
have
• Therefore


 x
B
n
x ]
[
]
[
]
[
]
[
]
[
]
[ k
n
x
k
h
k
n
x
k
h
n
y
k
k



 







S
B
k
h
B x
k
x 
 



]
[
BIBO Stability Condition of an
LTI Discrete-Time System
• Thus, S < implies
indicating that y[n] is also bounded
• To prove the converse, assume y[n] is
bounded, i.e.,
• Consider the input given by
 

 y
B
n
y ]
[
y
B
n
y 
]
[









0
0
]
[
if
,
]
[
if
]),
[
sgn(
]
[
n
h
K
n
h
n
h
n
x
BIBO Stability Condition of an
LTI Discrete-Time System
where sgn(c) = +1 if c > 0 and sgn(c) =
if c < 0 and
• Note: Since , {x[n]} is obviously
bounded
• For this input, y[n] at n = 0 is
• Therefore, implies S <
1

1

K
y
B
n
y 
]
[ 
1

]
[n
x
S
k
h
k
h
y
k





 ]
[
])
[
sgn(
]
0
[ 

 y
B
• Example - Consider a causal LTI discrete-time
system with an impulse response
• For this system
,
• Therefore S < if for which the system is
BIBO stable
• If , the system is not BIBO stable
Stability Condition of an LTI
Discrete-Time System
 1


1


]
[
)
(
]
[ n
n
h n



1









 





 1
1
]
[
0
n
n
n
n
n
S
Causality Condition of an LTI
Discrete-Time System
• Let and be two input sequences
with
• The corresponding output samples at
of an LTI system with an impulse response
{h[n]} are then given by
]
[n
x1 ]
[n
x2
]
[
]
[ n
x
n
x 2
1  o
n
n 
for
o
n
n 
Causality Condition of an LTI
Discrete-Time System











0
2
2
2
k
o
k
o
o k
n
x
k
h
k
n
x
k
h
n
y ]
[
]
[
]
[
]
[
]
[






1
2
k
o k
n
x
k
h ]
[
]
[











0
1
1
1
k
o
k
o
o k
n
x
k
h
k
n
x
k
h
n
y ]
[
]
[
]
[
]
[
]
[






1
1
k
o k
n
x
k
h ]
[
]
[
Causality Condition of an LTI
Discrete-Time System
• If the LTI system is also causal, then
• As
• This implies
]
[
]
[ n
x
n
x 2
1  o
n
n 
for
]
[
]
[ o
o n
y
n
y 2
1 









0
2
0
1
k
o
k
o k
n
x
k
h
k
n
x
k
h ]
[
]
[
]
[
]
[











1
2
1
1
k
o
k
o k
n
x
k
h
k
n
x
k
h ]
[
]
[
]
[
]
[
Causality Condition of an LTI
Discrete-Time System
• As for the only way
the condition
will hold if both sums are equal to zero,
which is satisfied if
]
[
]
[ n
x
n
x 2
1  o
n
n 











1
2
1
1
k
o
k
o k
n
x
k
h
k
n
x
k
h ]
[
]
[
]
[
]
[
0

]
[k
h for k < 0
Causality Condition of an LTI
Discrete-Time System
• An LTI discrete-time system is causal
if and only if its impulse response {h[n]} is a
causal sequence
• Example - The discrete-time system defined
by
is a causal system as it has a causal impulse
response
]
3
[
]
2
[
]
1
[
]
[
]
[ 4
3
2
1 









 n
x
n
x
n
x
n
x
n
y
}
{
]}
[
{ 4
3
2
1 




n
h

Causality Condition of an LTI
Discrete-Time System
• Example - The discrete-time accumulator
defined by
is a causal system as it has a causal impulse
response given by
]
[
]
[
]
[ n
n
y
n



 




]
[
]
[
]
[ n
n
h
n



 




Causality Condition of an LTI
Discrete-Time System
• Example - The factor-of-2 interpolator
defined by
is noncausal as it has a noncausal impulse
response given by
 
]
1
[
]
1
[
]
[
]
[
2
1 



 n
x
n
x
n
x
n
y u
u
u
}
5
.
0
1
5
.
0
{
]}
[
{ 
n
h

Causality Condition of an LTI
Discrete-Time System
• Note: A noncausal LTI discrete-time system
with a finite-length impulse response can
often be realized as a causal system by
inserting an appropriate amount of delay
• For example, a causal version of the factor-
of-2 interpolator is obtained by delaying the
input by one sample period:
 
]
[
]
2
[
]
1
[
]
[
2
1 n
x
n
x
n
x
n
y u
u
u 




Finite-Dimensional LTI
Discrete-Time Systems
• An important subclass of LTI discrete-time
systems is characterized by a linear constant
coefficient difference equation of the form
• x[n] and y[n] are, respectively, the input and
the output of the system
• and are constants characterizing
the system
}
{ k
d }
{ k
p







M
k
k
N
k
k k
n
x
p
k
n
y
d
0
0
]
[
]
[
Finite-Dimensional LTI
Discrete-Time Systems
• The order of the system is given by
max(N,M), which is the order of the difference
equation
• It is possible to implement an LTI system
characterized by a constant coefficient
difference equation as here the computation
involves two finite sums of products
Finite-Dimensional LTI
Discrete-Time Systems
• If we assume the system to be causal, then
the output y[n] can be recursively computed
using
provided
• y[n] can be computed for all ,
knowing x[n] and the initial conditions
0
0 
d
o
n
n 
]
[
,
.
.
.
],
2
[
],
1
[ N
n
y
n
y
n
y o
o
o 


]
[
]
[
]
[
1 0
1 0
k
n
x
d
p
k
n
y
d
d
n
y
M
k
k
N
k
k 



 



Classification of LTI Discrete-
Time Systems
Based on Impulse Response Length -
• If the impulse response h[n] is of finite
length, i.e.,
then it is known as a finite impulse
response (FIR) discrete-time system
• The convolution sum description here is
2
1
2
1 ,
and
for
0
]
[ N
N
N
n
N
n
n
h 







2
1
]
[
]
[
]
[
N
N
k
k
n
x
k
h
n
y
Classification of LTI Discrete-
Time Systems
• The output y[n] of an FIR LTI discrete-time
system can be computed directly from the
convolution sum as it is a finite sum of
products
• Examples of FIR LTI discrete-time systems
are the moving-average system and the
linear interpolators
Classification of LTI Discrete-
Time Systems
• If the impulse response is of infinite length,
then it is known as an infinite impulse
response (IIR) discrete-time system
• The class of IIR systems we are concerned
with in this course are characterized by
linear constant coefficient difference
equations
Classification of LTI Discrete-
Time Systems
• Example - The discrete-time accumulator
defined by
is seen to be an IIR system
]
[
]
1
[
]
[ n
x
n
y
n
y 


Classification of LTI Discrete-
Time Systems
• Example - The familiar numerical
integration formulas that are used to
numerically solve integrals of the form
can be shown to be characterized by linear
constant coefficient difference equations,
and hence, are examples of IIR systems
 


t
d
x
t
y
0
)
(
)
(
Classification of LTI Discrete-
Time Systems
• If we divide the interval of integration into n
equal parts of length T, then the previous
integral can be rewritten as
where we have set t = nT and used the
notation







nT
T
n
d
x
T
n
y
nT
y
)
1
(
)
(
)
)
1
((
)
(
 


nT
d
x
nT
y
0
)
(
)
(
Classification of LTI Discrete-
Time Systems
• Using the trapezoidal method we can write
• Hence, a numerical representation of the
definite integral is given by
)}
(
)
)
1
((
{
)
(
2
)
1
(
nT
x
T
n
x
d
x T
nT
T
n







)}
(
)
)
1
((
{
)
)
1
((
)
(
2
nT
x
T
n
x
T
n
y
nT
y T





Classification of LTI Discrete-
Time Systems
• Let y[n] = y(nT) and x[n] = x(nT)
• Then
reduces to
which is recognized as the difference
equation representation of a first-order IIR
discrete-time system
)}
(
)
)
1
((
{
)
)
1
((
)
(
2
nT
x
T
n
x
T
n
y
nT
y T





]}
1
[
]
[
{
]
1
[
]
[
2




 n
x
n
x
n
y
n
y T
Classification of LTI Discrete-
Time Systems
Based on the Output Calculation Process
• Nonrecursive System - Here the output can
be calculated sequentially, knowing only the
present and past input samples
• Recursive System - Here the output
computation involves past output samples in
addition to the present and past input
samples
Classification of LTI Discrete-
Time Systems
Based on the Coefficients -
• Real Discrete-Time System - The impulse
response samples are real valued
• Complex Discrete-Time System - The
impulse response samples are complex
valued
Correlation of Signals
Definitions
• A measure of similarity between a pair of
energy signals, x[n] and y[n], is given by the
cross-correlation sequence defined by
• The parameter called lag, indicates the
time-shift between the pair of signals

]
[
xy
r
...
,
,
,
],
[
]
[
]
[ 2
1
0 



 






n
xy n
y
n
x
r
Correlation of Signals
• If y[n] is made the reference signal and we
wish to shift x[n] with respect to y[n], then
the corresponding cross-correlation
sequence is given by
• Thus, is obtained by time-reversing


 
 n
yx n
x
n
y
r ]
[
]
[
]
[ 

]
[
]
[
]
[ 
 


 

 xy
m r
m
x
m
y
]
[
yx
r
]
[
xy
r
Correlation of Signals
• The autocorrelation sequence of x[n] is
given by
obtained by setting y[n] = x[n] in the
definition of the cross-correlation sequence
• Note: , the energy
of the signal x[n]


 
 n
xx n
x
n
x
r ]
[
]
[
]
[ 

]
[
xy
r
x
n
xx n
x
r E


 
 ]
[
]
[ 2
0
Correlation of Signals
• From the relation it follows
that implying that is
an even function for real x[n]
• An examination of
reveals that the expression for the cross-
correlation looks quite similar to that of the
linear convolution
]
[
]
[ 
 
 xy
yx r
r
]
[
]
[ 
 
 xx
xx r
r ]
[
xx
r


 
 n
xy n
y
n
x
r ]
[
]
[
]
[ 

Correlation of Signals
• This similarity is much clearer if we rewrite
the expression for the cross-correlation as
• The cross-correlation of y[n] with the
reference signal x[n] can be computed by
processing x[n] with an LTI discrete-time
system of impulse response ]
[ n
y 
]
[
]
[
)]
(
[
]
[
]
[ 


 



 

 y
x
n
y
n
x
r n
xy *
]
[ n
y 
]
[n
x ]
[n
rxy
Correlation of Signals
• Likewise, the autocorrelation of x[n] can be
computed by processing x[n] with an LTI
discrete-time system of impulse response
]
[ n
x 
]
[n
x ]
[n
rxx
]
[ n
x 
Properties of Autocorrelation and
Cross-correlation Sequences
• Consider two finite-energy sequences x[n]
and y[n]
• The energy of the combined sequence
is also finite and
nonnegative, i.e.,
]
[
]
[ 

 n
y
n
x
a

 




 

 n
n n
x
a
n
y
n
x
a ]
[
])
[
]
[
( 2
2
2

0
2 2




 
 




 n
n n
y
n
y
n
x
a ]
[
]
[
]
[ 

Properties of Autocorrelation and
Cross-correlation Sequences
• Thus
where and
• We can rewrite the equation on the previous
slide as
for any finite value of a
0
0
2
0
2


 ]
[
]
[
]
[ yy
xy
xx r
r
a
r
a 
0
0 
 x
xx
r E
]
[ 0
0 
 y
yy
r E
]
[
  0
1
0
0
1 











 a
r
r
r
r
a
yy
xy
xy
xx
]
[
]
[
]
[
]
[


Properties of Autocorrelation and
Cross-correlation Sequences
• Or, in other words, the matrix
is positive semidefinite
•






]
[
]
[
]
[
]
[
0
0
yy
xy
xy
xx
r
r
r
r


0
0
0 2

 ]
[
]
[
]
[ 
xy
yy
xx r
r
r
y
x
yy
xx
xy r
r
r E
E

 ]
[
]
[
|
]
[
| 0
0

Properties of Autocorrelation and
Cross-correlation Sequences
• The last inequality on the previous slide
provides an upper bound for the cross-
correlation samples
• If we set y[n] = x[n], then the inequality
reduces to
x
xx
xx r
r E
]
0
[
|
]
[
| 


Properties of Autocorrelation and
Cross-correlation Sequences
• Thus, at zero lag ( ), the sample value
of the autocorrelation sequence has its
maximum value
• Now consider the case
where N is an integer and b > 0 is an
arbitrary number
• In this case
0


x
y b E
E 2

]
[
]
[ N
n
x
b
n
y 


Properties of Autocorrelation and
Cross-correlation Sequences
• Therefore
• Using the above result in
we get
x
x
y
x b
b E
E
E
E 
 2
2
y
x
yy
xx
xy r
r
r E
E

 ]
[
]
[
|
]
[
| 0
0

]
[
]
[
]
[ 0
0 xx
xy
xx r
b
r
r
b 

 
Correlation Computation
Using MATLAB
• The cross-correlation and autocorrelation
sequences can easily be computed using
MATLAB
• Example - Consider the two finite-length
sequences
 
2
4
4
1
2
1
2
3
1 


]
[n
x
 
3
2
1
4
1
2 


]
[n
y
Correlation Computation
Using MATLAB
• The cross-correlation sequence
computed using Program 2_7 of text is
plotted below
]
[n
rxy
-4 -2 0 2 4 6 8
-10
0
10
20
30
Lag index
Amplitude
Correlation Computation
Using MATLAB
• The autocorrelation sequence
computed using Program 2_7 is shown below
• Note: At zero lag, is the maximum
]
[
xx
r
]
[0
xx
r
-5 0 5
-20
0
20
40
60
Lag index
Amplitude
Correlation Computation
Using MATLAB
• The plot below shows the cross-correlation
of x[n] and for N = 4
• Note: The peak of the cross-correlation is
precisely the value of the delay N
]
[
]
[ N
n
x
n
y 

-10 -5 0 5
-20
0
20
40
60
Lag index
Amplitude
Correlation Computation
Using MATLAB
• The plot below shows the autocorrelation of
x[n] corrupted with an additive random
noise generated using the function randn
• Note: The autocorrelation still exhibits a
peak at zero lag
-5 0 5
0
20
40
60
80
Lag index
Amplitude
Correlation Computation
Using MATLAB
• The autocorrelation and the cross-
correlation can also be computed using the
function xcorr
• However, the correlation sequences
generated using this function are the time-
reversed version of those generated using
Programs 2_7 and 2_8
Normalized Forms of
Correlation
• Normalized forms of autocorrelation and
cross-correlation are given by
• They are often used for convenience in
comparing and displaying
• Note: and
independent of the range of values of x[n]
and y[n]
]
[
]
[
]
[
]
[
,
]
[
]
[
]
[
0
0
0 yy
xx
xy
xy
xx
xx
xx
r
r
r
r
r 


 
 

1

|
]
[
| 
xx
 1

|
]
[
| 
xy

Correlation Computation for
Power Signals
• The cross-correlation sequence for a pair of
power signals, x[n] and y[n], is defined as
• The autocorrelation sequence of a power
signal x[n] is given by








K
K
n
K
xy n
y
n
x
K
r ]
[
]
[
lim
]
[ 

1
2
1








K
K
n
K
xx n
x
n
x
K
r ]
[
]
[
lim
]
[ 

1
2
1
Correlation Computation for
Periodic Signals
• The cross-correlation sequence for a pair of
periodic signals of period N, and ,
is defined as
• The autocorrelation sequence of a periodic
signal of period N is given by
]
[n
x
~
]
[n
y
~
]
[n
x
~
 
 
 1
0
1 N
n
N
xy n
y
n
x
r ]
[
]
[
]
[ 
 ~ ~
~~
 
 
 1
0
1 N
n
N
xx n
x
n
x
r ]
[
]
[
]
[ 
 ~ ~
~~
Correlation Computation for
Periodic Signals
• Note: Both and are also
periodic signals with a period N
• The periodicity property of the
autocorrelation sequence can be exploited to
determine the period of a periodic signal
that may have been corrupted by an additive
random disturbance
]
[
xy
r~~ ]
[
xx
r~~
Correlation Computation for
Periodic Signals
• Let be a periodic signal corrupted by
the random noise d[n] resulting in the signal
which is observed for where
]
[n
x
~
]
[
]
[
]
[ n
d
n
x
n
w 
 ~
1
0 

 M
n
N
M 

Correlation Computation for
Periodic Signals
• The autocorrelation of w[n] is given by
 
 
 1
0
1
]
[
]
[
]
[ M
n
M
ww n
w
n
w
r 

 
 



 1
0
1
])
[
]
[
])(
[
]
[
(
M
n
M
n
d
n
x
n
d
n
x 

~
~

 


 


 1
0
1
1
0
1
]
[
]
[
]
[
]
[ M
n
M
M
n
M
n
d
n
d
n
x
n
x 


 


 


 1
0
1
1
0
1
]
[
]
[
]
[
]
[ M
n
M
M
n
M
n
x
n
d
n
d
n
x 

~ ~
~ ~
]
[
]
[
]
[
]
[ 


 dx
xd
dd
xx r
r
r
r 


 ~
~
~
~
Correlation Computation for
Periodic Signals
• In the last equation on the previous slide,
is a periodic sequence with a period N and
hence will have peaks at
with the same amplitudes as approaches M
• As and d[n] are not correlated, samples
of cross-correlation sequences and
are likely to be very small relative to the
amplitudes of
.
.
.
,
2
,
,
0 N
N



]
[
xx
r ~
~
]
[n
x
~
]
[
xx
r ~
~
]
[
xd
r~ ~ ]
[
dx
r
Correlation Computation for
Periodic Signals
• The autocorrelation of d[n] will show
a peak at = 0 with other samples having
rapidly decreasing amplitudes with
increasing values of
• Hence, peaks of for > 0 are
essentially due to the peaks of and can
be used to determine whether is a
periodic sequence and also its period N if
the peaks occur at periodic intervals


|
|
]
[
ww
r
]
[
xx
r ~
~
]
[n
x
~
]
[
dd
r
Correlation Computation of a
Periodic Signal Using MATLAB
• Example - We determine the period of the
sinusoidal sequence ,
corrupted by an additive
uniformly distributed random noise of
amplitude in the range
• Using Program 2_8 of text we arrive at the
plot of shown on the next slide
)
25
.
0
cos(
]
[ n
n
x 
95
0 
 n
]
5
.
0
,
5
.
0
[
]
[
ww
r
Correlation Computation of a
Periodic Signal Using MATLAB
• As can be seen from the plot given above,
there is a strong peak at zero lag
• However, there are distinct peaks at lags that
are multiples of 8 indicating the period of the
sinusoidal sequence to be 8 as expected
-20 -10 0 10 20
-60
-40
-20
0
20
40
60
Lag index
Amplitude
Correlation Computation of a
Periodic Signal Using MATLAB
• Figure below shows the plot of
• As can be seen shows a very strong
peak at only zero lag
-20 -10 0 10 20
-2
0
2
4
6
8
Lag index
Amplitude
]
[
dd
r
]
[
dd
r

More Related Content

Similar to Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt

week1.ppt12345667777777777777777777777777
week1.ppt12345667777777777777777777777777week1.ppt12345667777777777777777777777777
week1.ppt12345667777777777777777777777777KiranG731731
 
communication Systems
communication Systems communication Systems
communication Systems AJAL A J
 
BEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdfBEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdfSunil Manjani
 
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal ProcessingDSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal ProcessingAmr E. Mohamed
 
Signal & systems
Signal & systemsSignal & systems
Signal & systemsAJAL A J
 
Course-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdfCourse-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdfShreeDevi42
 
Advanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdfAdvanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdfHariPrasad314745
 
Communication System (3).ppt
Communication System (3).pptCommunication System (3).ppt
Communication System (3).pptPrathamesh508521
 
Analog to Digital Converter .pptx
Analog to Digital Converter .pptxAnalog to Digital Converter .pptx
Analog to Digital Converter .pptxhepzijustin
 
Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao Prakash Rao
 
Chapter 2- Digital Data Acquistion.ppt
Chapter 2- Digital Data Acquistion.pptChapter 2- Digital Data Acquistion.ppt
Chapter 2- Digital Data Acquistion.pptVasanthiMuniasamy2
 
Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...
Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...
Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...www. mientayvn.com
 
DSP Lesson 1 Slides (1).pdf
DSP Lesson 1 Slides (1).pdfDSP Lesson 1 Slides (1).pdf
DSP Lesson 1 Slides (1).pdfPearlInc1
 
1.Basics of Signals
1.Basics of Signals1.Basics of Signals
1.Basics of SignalsINDIAN NAVY
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processingvanikeerthika
 

Similar to Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt (20)

dsp dip.pptx
dsp dip.pptxdsp dip.pptx
dsp dip.pptx
 
Dsp class 1
Dsp class 1Dsp class 1
Dsp class 1
 
week1.ppt12345667777777777777777777777777
week1.ppt12345667777777777777777777777777week1.ppt12345667777777777777777777777777
week1.ppt12345667777777777777777777777777
 
communication Systems
communication Systems communication Systems
communication Systems
 
IARE_DSP_PPT.pptx
IARE_DSP_PPT.pptxIARE_DSP_PPT.pptx
IARE_DSP_PPT.pptx
 
BEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdfBEC604 -COMMUNICATION ENG II.pdf
BEC604 -COMMUNICATION ENG II.pdf
 
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal ProcessingDSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
DSP_2018_FOEHU - Lec 1 - Introduction to Digital Signal Processing
 
Signal & systems
Signal & systemsSignal & systems
Signal & systems
 
Course-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdfCourse-Notes__Advanced-DSP.pdf
Course-Notes__Advanced-DSP.pdf
 
Advanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdfAdvanced_DSP_J_G_Proakis.pdf
Advanced_DSP_J_G_Proakis.pdf
 
Dsp ppt
Dsp pptDsp ppt
Dsp ppt
 
Communication System (3).ppt
Communication System (3).pptCommunication System (3).ppt
Communication System (3).ppt
 
Analog to Digital Converter .pptx
Analog to Digital Converter .pptxAnalog to Digital Converter .pptx
Analog to Digital Converter .pptx
 
Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao Digital Signal Processing by Dr. R. Prakash Rao
Digital Signal Processing by Dr. R. Prakash Rao
 
Chapter 2- Digital Data Acquistion.ppt
Chapter 2- Digital Data Acquistion.pptChapter 2- Digital Data Acquistion.ppt
Chapter 2- Digital Data Acquistion.ppt
 
Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...
Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...
Ee341 dsp1 1_sv_chapter1_hay truy cap vao trang www.mientayvn.com de tai them...
 
DSP Lesson 1 Slides (1).pdf
DSP Lesson 1 Slides (1).pdfDSP Lesson 1 Slides (1).pdf
DSP Lesson 1 Slides (1).pdf
 
1.Basics of Signals
1.Basics of Signals1.Basics of Signals
1.Basics of Signals
 
Digitization
DigitizationDigitization
Digitization
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processing
 

More from ArnabChakraborty499766

cost estimation model per unit model and segmenting model.pdf
cost estimation model per unit model and segmenting model.pdfcost estimation model per unit model and segmenting model.pdf
cost estimation model per unit model and segmenting model.pdfArnabChakraborty499766
 
different ic engine based vehicle types and working.pptx
different ic engine based vehicle types and working.pptxdifferent ic engine based vehicle types and working.pptx
different ic engine based vehicle types and working.pptxArnabChakraborty499766
 
inductionmotordrivesch-2-230429043252-3aaa901e.pdf
inductionmotordrivesch-2-230429043252-3aaa901e.pdfinductionmotordrivesch-2-230429043252-3aaa901e.pdf
inductionmotordrivesch-2-230429043252-3aaa901e.pdfArnabChakraborty499766
 
power system operation and control unit commitment .pdf
power system operation and control unit commitment .pdfpower system operation and control unit commitment .pdf
power system operation and control unit commitment .pdfArnabChakraborty499766
 
economic load dispatch and unit commitment power_system_operation.pdf
economic load dispatch and unit commitment power_system_operation.pdfeconomic load dispatch and unit commitment power_system_operation.pdf
economic load dispatch and unit commitment power_system_operation.pdfArnabChakraborty499766
 
types of tariffs, advantage of tariff, how tariff work,.pdf
types of tariffs, advantage of tariff, how tariff work,.pdftypes of tariffs, advantage of tariff, how tariff work,.pdf
types of tariffs, advantage of tariff, how tariff work,.pdfArnabChakraborty499766
 

More from ArnabChakraborty499766 (8)

cost estimation model per unit model and segmenting model.pdf
cost estimation model per unit model and segmenting model.pdfcost estimation model per unit model and segmenting model.pdf
cost estimation model per unit model and segmenting model.pdf
 
different ic engine based vehicle types and working.pptx
different ic engine based vehicle types and working.pptxdifferent ic engine based vehicle types and working.pptx
different ic engine based vehicle types and working.pptx
 
inductionmotordrivesch-2-230429043252-3aaa901e.pdf
inductionmotordrivesch-2-230429043252-3aaa901e.pdfinductionmotordrivesch-2-230429043252-3aaa901e.pdf
inductionmotordrivesch-2-230429043252-3aaa901e.pdf
 
power system operation and control unit commitment .pdf
power system operation and control unit commitment .pdfpower system operation and control unit commitment .pdf
power system operation and control unit commitment .pdf
 
economic load dispatch and unit commitment power_system_operation.pdf
economic load dispatch and unit commitment power_system_operation.pdfeconomic load dispatch and unit commitment power_system_operation.pdf
economic load dispatch and unit commitment power_system_operation.pdf
 
types of tariffs, advantage of tariff, how tariff work,.pdf
types of tariffs, advantage of tariff, how tariff work,.pdftypes of tariffs, advantage of tariff, how tariff work,.pdf
types of tariffs, advantage of tariff, how tariff work,.pdf
 
ARNAB12.pdf
ARNAB12.pdfARNAB12.pdf
ARNAB12.pdf
 
PPT Format for CA1.pptx
PPT Format for CA1.pptxPPT Format for CA1.pptx
PPT Format for CA1.pptx
 

Recently uploaded

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 

Recently uploaded (20)

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 

Lectures 1-2 Time-Domain Characterization of LTI Discrete-Time Systems.ppt

  • 1. Discrete-Time Signals: Time-Domain Representation Tania Stathaki 811b t.stathaki@imperial.ac.uk
  • 2. What is a signal ? A signal is a function of an independent variable such as time, distance, position, temperature, pressure, etc.
  • 3. For example… • Electrical Engineering voltages/currents in a circuit speech signals image signals • Physics radiation • Mechanical Engineering vibration studies • Astronomy space photos
  • 4. or • Biomedicine EEG, ECG, MRI, X-Rays, Ultrasounds • Seismology tectonic plate movement, earthquake prediction • Economics stock market data
  • 5.
  • 6. What is DSP? Mathematical and algorithmic manipulation of discretized and quantized or naturally digital signals in order to extract the most relevant and pertinent information that is carried by the signal. What is a signal? What is a system? What is processing?
  • 7. Signals can be characterized in several ways Continuous time signals vs. discrete time signals (x(t), x[n]). Temperature in London / signal on a CD-ROM. Continuous valued signals vs. discrete signals. Amount of current drawn by a device / average scores of TOEFL in a school over years. –Continuous time and continuous valued : Analog signal. –Continuous time and discrete valued: Quantized signal. –Discrete time and continuous valued: Sampled signal. –Discrete time and discrete values: Digital signal. Real valued signals vs. complex valued signals. Resident use electric power / industrial use reactive power. Scalar signals vs. vector valued (multi-channel) signals. Blood pressure signal / 128 channel EEG. Deterministic vs. random signal: Recorded audio / noise. One-dimensional vs. two dimensional vs. multidimensional signals. Speech / still image / video.
  • 8.
  • 9. Systems • For our purposes, a DSP system is one that can mathematically manipulate (e.g., change, record, transmit, transform) digital signals. • Furthermore, we are not interested in processing analog signals either, even though most signals in nature are analog signals.
  • 10. Various Types of Processing Modulation and demodulation. Signal security. Encryption and decryption. Multiplexing and de-multiplexing. Data compression. Signal de-noising. Filtering for noise reduction. Speaker/system identification. Signal enhancement –equalization. Audio processing. Image processing –image de-noising, enhancement, watermarking. Reconstruction. Data analysis and feature extraction. Frequency/spectral analysis.
  • 11. Filtering • By far the most commonly used DSP operation Filtering refers to deliberately changing the frequency content of the signal, typically, by removing certain frequencies from the signals. For de-noising applications, the (frequency) filter removes those frequencies in the signal that correspond to noise. In various applications, filtering is used to focus to that part of the spectrum that is of interest, that is, the part that carries the information. • Typically we have the following types of filters Low-pass (LPF) –removes high frequencies, and retains (passes) low frequencies. High-pass (HPF) –removes low frequencies, and retains high frequencies. Band-pass (BPF) –retains an interval of frequencies within a band, removes others. Band-stop (BSF) –removes an interval of frequencies within a band, retains others. Notch filter –removes a specific frequency.
  • 13. Components of a DSP System
  • 14. Components of a DSP System
  • 15. Components of a DSP System
  • 16. Analog-to-Digital-to-Analog…? • Why not just process the signals in continuous time domain? Isn’t it just a waste of time, money and resources to convert to digital and back to analog? • Why DSP? We digitally process the signals in discrete domain, because it is – 􀂪More flexible, more accurate, easier to mass produce. – 􀂪Easier to design. • System characteristics can easily be changed by programming. • Any level of accuracy can be obtained by use of appropriate number of bits. – 􀂪More deterministic and reproducible-less sensitive to component values, etc. – 􀂪Many things that cannot be done using analog processors can be done digitally. • Allows multiplexing, time sharing, multi-channel processing, adaptive filtering. • Easy to cascade, no loading effects, signals can be stored indefinitely w/o loss. • Allows processing of very low frequency signals, which requires unpractical component values in analog world.
  • 17. Analog-to-Digital-to-Analog…? • On the other hand, it can be – 􀂪Slower, sampling issues. – 􀂪More expensive, increased system complexity, consumes more power. • Yet, the advantages far outweigh the disadvantages. Today, most continuous time signals are in fact processed in discrete time using digital signal processors.
  • 18. Analog-Digital Examples of analog technology • photocopiers • telephones • audio tapes • televisions (intensity and color info per scan line) • VCRs (same as TV) Examples of digital technology • Digital computers!
  • 19. In the next few slides you can see some real-life signals
  • 24. Medical Images: MRI of normal brain
  • 26. Medical Images: Ultrasound Five-month Foetus (lungs, liver and bowel)
  • 28. Discrete-Time Signals: Time-Domain Representation • 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 • x[n] defined only for integer values of n and undefined for noninteger values of n • Discrete-time signal represented by {x[n]}      n
  • 29. • Here, n-th sample is given by • The spacing T is called the sampling interval or sampling period • Inverse of sampling interval T, denoted as , is called the sampling frequency: Discrete-Time Signals: Time-Domain Representation ), ( ) ( ] [ nT x t x n x a nT t a      , 1 , 0 , 1 , 2 ,    n T F 1 ) (   T FT
  • 30. Discrete-Time Signals: Time-Domain Representation • Two types of discrete-time signals: - Sampled-data signals in which samples are continuous-valued - Digital signals in which samples are discrete-valued • Signals in a practical digital signal processing system are digital signals obtained by quantizing the sample values either by rounding or truncation
  • 31. 256x256 64x64 2 Dimensions From Continuous to Discrete: Sampling
  • 32. Discrete (Sampled) and Digital (Quantized) Image
  • 33. Discrete (Sampled) and Digital (Quantized) Image
  • 34. 256x256 256 levels 256x256 32 levels Discrete (Sampled) and Digital (Quantized) Image
  • 35. 256x256 256 levels 256x256 2 levels Discrete (Sampled) and Digital (Quantized) Image
  • 36. Discrete-Time Signals: Time-Domain Representation • A discrete-time signal may be a finite- length or an infinite-length sequence • Finite-length (also called finite-duration or finite-extent) sequence is defined only for a finite time interval: where and with • Length or duration of the above finite- length sequence is 2 1 N n N   1 N      2 N 2 1 N N  1 1 2    N N N
  • 37. Discrete-Time Signals: Time-Domain Representation • A right-sided sequence x[n] has zero- valued samples for • If a right-sided sequence is called a causal sequence , 0 1  N 1 N n  A right-sided sequence
  • 38. Discrete-Time Signals: Time-Domain Representation • A left-sided sequence x[n] has zero-valued samples for • If a left-sided sequence is called a anti-causal sequence 2 N n  , 0 2  N A left-sided sequence
  • 39. Operations on Sequences • A single-input, single-output discrete-time system operates on a sequence, called the input sequence, according some prescribed rules and develops another sequence, called the output sequence, with more desirable properties x[n] y[n] Input sequence Output sequence Discrete-time system
  • 40. Example of an Operation on a Sequence: Noise Removal • For example, the input may be a signal corrupted with additive noise • A discrete-time system may be designed to generate an output by removing the noise component from the input • In most cases, the operation defining a particular discrete-time system is composed of some basic operations
  • 41. Basic Operations • Product (modulation) operation: – Modulator • An application is the generation of a finite-length sequence from an infinite-length sequence by multiplying the latter with a finite-length sequence called an window sequence • Process called windowing  x[n] y[n] w[n] ] [ ] [ ] [ n w n x n y  
  • 42. Basic Operations • Addition operation: – Adder • Multiplication operation – Multiplier ] [ ] [ ] [ n w n x n y   A x[n] y[n] ] [ ] [ n x A n y   x[n] y[n] w[n] 
  • 43. Basic Operations • Time-shifting operation: where N is an integer • If N > 0, it is a delay operation – Unit delay • If N < 0, it is an advance operation – Unit advance ] [ ] [ N n x n y   y[n] x[n] z 1  z y[n] x[n] ] [ ] [ 1   n x n y ] [ ] [ 1   n x n y
  • 44. Basic Operations • Time-reversal (folding) operation: • Branching operation: Used to provide multiple copies of a sequence ] [ ] [ n x n y   x[n] x[n] x[n]
  • 45. Combinations of Basic Operations • Example - ] 3 [ ] 2 [ ] 1 [ ] [ ] [ 4 3 2 1        n x n x n x n x n y    
  • 46. Sampling Rate Alteration • Employed to generate a new sequence y[n] with a sampling rate higher or lower than that of the sampling rate of a given sequence x[n] • Sampling rate alteration ratio is • If R > 1, the process called interpolation • If R < 1, the process called decimation T F ' T F T T F F R ' 
  • 47. Sampling Rate Alteration • In up-sampling by an integer factor L > 1, equidistant zero-valued samples are inserted by the up-sampler between each two consecutive samples of the input sequence x[n]: 1  L        otherwise , 0 , 2 , , 0 ], / [ ] [  L L n L n x n xu L ] [n x ] [n xu
  • 48. Sampling Rate Alteration • An example of the up-sampling operation 0 10 20 30 40 50 -1 -0.5 0 0.5 1 Output sequence up-sampled by 3 Time index n Amplitude 0 10 20 30 40 50 -1 -0.5 0 0.5 1 Input Sequence Time index n Amplitude
  • 49. Sampling Rate Alteration • In down-sampling by an integer factor M > 1, every M-th samples of the input sequence are kept and in-between samples are removed: 1  M ] [ ] [ nM x n y  ] [n x ] [n y M
  • 50. Sampling Rate Alteration • An example of the down-sampling operation 0 10 20 30 40 50 -1 -0.5 0 0.5 1 Output sequence down-sampled by 3 Amplitude Time index n 0 10 20 30 40 50 -1 -0.5 0 0.5 1 Input Sequence Time index n Amplitude
  • 51. Classification of Sequences Based on Symmetry • Conjugate-symmetric sequence: If x[n] is real, then it is an even sequence ] [ * ] [ n x n x   An even sequence
  • 52. Classification of Sequences Based on Symmetry • Conjugate-antisymmetric sequence: If x[n] is real, then it is an odd sequence ] [ * ] [ n x n x    An odd sequence
  • 53. Classification of Sequences Based on Symmetry • It follows from the definition that for a conjugate-symmetric sequence {x[n]}, x[0] must be a real number • Likewise, it follows from the definition that for a conjugate anti-symmetric sequence {y[n]}, y[0] must be an imaginary number • From the above, it also follows that for an odd sequence {w[n]}, w[0] = 0
  • 54. • Any complex sequence can be expressed as a sum of its conjugate-symmetric part and its conjugate-antisymmetric part: where Classification of Sequences Based on Symmetry   ] [ * ] [ ] [ 2 1 n x n x n xcs      ] [ * ] [ ] [ 2 1 n x n x n xca    ] [ ] [ ] [ n x n x n x ca cs  
  • 55. Classification of Sequences Based on Symmetry • Any real sequence can be expressed as a sum of its even part and its odd part: where ] [ ] [ ] [ n x n x n x od ev     ] [ ] [ ] [ 2 1 n x n x n xev      ] [ ] [ ] [ 2 1 n x n x n xod   
  • 56. Classification of Sequences Based on Periodicity • A sequence satisfying is called a periodic sequence with a period N where N is a positive integer and k is any integer • Smallest value of N satisfying is called the fundamental period • A sequence not satisfying the periodicity condition is called an aperiodic sequence ] [ ~ n x ] [ ~ ] [ ~ kN n x n x   ] [ ~ ] [ ~ kN n x n x  
  • 57. Classification of Sequences: Energy and Power Signals • Total energy of a sequence x[n] is defined by • An infinite length sequence with finite sample values may or may not have finite energy • A finite length sequence with finite sample values has finite energy      n n x 2 x ] [ 
  • 58. Classification of Sequences: Energy and Power Signals • The average power of an aperiodic sequence is defined by • We define the energy of a sequence x[n] over a finite interval as        K K n K K n x P 2 1 2 1 x ] [ lim K n K        K K n K x n x 2 , ] [ 
  • 59. Classification of Sequences: Energy and Power Signals • The average power of a periodic sequence with a period N is given by • The average power of an infinite-length sequence may be finite or infinite     1 0 2 1 N n N x n x P ] [ ~ ] [ ~ n x
  • 60. Classification of Sequences: Energy and Power Signals • Example - Consider the causal sequence defined by • Note: x[n] has infinite energy • Its average power is given by 5 . 4 1 2 ) 1 ( 9 lim 1 9 1 2 1 lim 0                   K K K P K K n K x        0 0 0 1 3 n n n x n , , ) ( ] [
  • 61. Classification of Sequences: Energy and Power Signals • An infinite energy signal with finite average power is called a power signal Example - A periodic sequence which has a finite average power but infinite energy • A finite energy signal with zero average power is called an energy signal
  • 63. Other Types of Classifications • A sequence x[n] is said to be bounded if • Example - The sequence is a bounded sequence as    x B n x ] [ n n x   3 . 0 cos ] [ 1 3 . 0 cos ] [    n n x
  • 64. Other Types of Classifications • A sequence x[n] is said to be absolutely summable if • Example - The sequence is an absolutely summable sequence as       n n x ] [       0 0 0 3 0 n n n y n , , . ] [         42857 1 3 0 1 1 3 0 0 . . . n n
  • 65. Other Types of Classifications • A sequence x[n] is said to be square- summable if • Example - The sequence is square-summable but not absolutely summable       n n x 2 ] [ n n n h   4 . 0 sin ] [
  • 66. Basic Sequences • Unit sample sequence - • Unit step sequence -       0 , 0 0 , 1 ] [ n n n        0 , 0 0 , 1 ] [ n n n 
  • 67. Basic Sequences • Real sinusoidal sequence - where A is the amplitude, is the angular frequency, and is the phase of x[n] Example - ) cos( ] [     n A n x o o   0 10 20 30 40 -2 -1 0 1 2 Time index n Amplitude  o = 0.1
  • 68. Basic Sequences • Complex exponential sequence - where A and are real or complex numbers • If we write then we can express where , ] [ n A n x        n  , ) ( o o j e      ,   j e A A ], [ ] [ ] [ ) ( n x j n x e e A n x im re n j j o o        ), cos( ] [      n e A n x o n re o ) sin( ] [      n e A n x o n im o
  • 69. Basic Sequences • and of a complex exponential sequence are real sinusoidal sequences with constant , growing , and decaying amplitudes for n > 0 ] [n xre ] [n xim   0  o   0  o   0  o n j n x ) exp( ] [ 6 12 1     0 10 20 30 40 -1 -0.5 0 0.5 1 Time index n Amplitude Real part 0 10 20 30 40 -1 -0.5 0 0.5 1 Time index n Amplitude Imaginary part
  • 70. Basic Sequences • Real exponential sequence - where A and  are real or complex numbers , ] [ n A n x        n 0 5 10 15 20 25 30 0 10 20 30 40 50 Time index n Amplitude  = 1.2 0 5 10 15 20 25 30 0 5 10 15 20 Time index n Amplitude  = 0.9
  • 71. Basic Sequences • Sinusoidal sequence and complex exponential sequence are periodic sequences of period N if where N and r are positive integers • Smallest value of N satisfying is the fundamental period of the sequence • To verify the above fact, consider ) cos(    n A o ) exp( n j B o  r N o    2 r N o    2 ) cos( ] [ 1     n n x o ) ) ( cos( ] [ 2      N n n x o
  • 72. Basic Sequences • Now which will be equal to only if and • These two conditions are met if and only if or ) ) ( cos( ] [ 2      N n n x o N n N n o o o o           sin ) sin( cos ) cos( ] [ ) cos( 1 n x n o     0 sin   N o 1 cos   N o r N o    2 r N o    2
  • 73. Basic Sequences • If is a noninteger rational number, then the period will be a multiple of • Otherwise, the sequence is aperiodic • Example - is an aperiodic sequence o  / 2 o  / 2 ) 3 sin( ] [    n n x
  • 74. Basic Sequences • Here • Hence period for r = 0 0  o 1 0 2    r N 0 10 20 30 40 0 0.5 1 1.5 2 Time index n Amplitude  0 = 0
  • 75. Basic Sequences • Here • Hence for r = 1    1 . 0 o 20 1 . 0 2    r N 0 10 20 30 40 -2 -1 0 1 2 Time index n Amplitude  0 = 0.1
  • 76. Basic Sequences • Property 1 - Consider and with and where k is any positive integer • If then x[n] = y[n] • Thus, x[n] and y[n] are indistinguishable ) exp( ] [ 1n j n x   ) exp( ] [ 2n j n y       1 0 ) 1 ( 2 2 2       k k , 2 1 2 k     
  • 77. Basic Sequences • Property 2 - The frequency of oscillation of increases as increases from 0 to , and then decreases as increases from to • Thus, frequencies in the neighborhood of are called low frequencies, whereas, frequencies in the neighborhood of are called high frequencies ) cos( n A o  o  o    2    0  
  • 78. Basic Sequences • Because of Property 1, a frequency in the neighborhood of  = 2 k is indistinguishable from a frequency in the neighborhood of  = 0 and a frequency in the neighborhood of is indistinguishable from a frequency in the neighborhood of  =  o  k o    2 o  ) 1 2 (     k o ) 1 2 (     k
  • 79. Basic Sequences • Frequencies in the neighborhood of  = 2 k are usually called low frequencies • Frequencies in the neighborhood of  =  (2k+1) are usually called high frequencies • is a low- frequency signal • is a high- frequency signal ) 9 . 1 cos( ) 1 . 0 cos( ] [ 1 n n n v     ) 2 . 1 cos( ) 8 . 0 cos( ] [ 2 n n n v    
  • 80. Basic Sequences • An arbitrary sequence can be represented in the time-domain as a weighted sum of some basic sequence and its delayed (advanced) versions ] 2 [ ] 1 [ 5 . 1 ] 2 [ 5 . 0 ] [       n n n n x    ] 6 [ 75 . 0 ] 4 [     n n  
  • 81. The Sampling Process • Often, a discrete-time sequence x[n] is developed by uniformly sampling a continuous-time signal as indicated below • The relation between the two signals is ) (t xa ), ( ) ( ] [ nT x t x n x a nT t a      , 2 , 1 , 0 , 1 , 2 ,    n
  • 82. The Sampling Process • Time variable t of is related to the time variable n of x[n] only at discrete-time instants given by with denoting the sampling frequency and denoting the sampling angular frequency ) (t xa T T n n F n nT t      2 n t T FT / 1  T T F    2
  • 83. • Consider the continuous-time signal • The corresponding discrete-time signal is where is the normalized digital angular frequency of x[n] The Sampling Process ) cos( ) 2 cos( ) (         t A t f A t x o o ) 2 cos( ) cos( ] [           n A nT A n x T o o ) cos(     n A o T o T o o        / 2 Hertz seconds radians per second radians per sample
  • 84. The Sampling Process • If the unit of sampling period T is in seconds • The unit of normalized digital angular frequency is radians/sample • The unit of normalized analog angular frequency is radians/second • The unit of analog frequency is hertz (Hz) o  o  o f
  • 85. The Sampling Process • The three continuous-time signals of frequencies 3 Hz, 7 Hz, and 13 Hz, are sampled at a sampling rate of 10 Hz, i.e. with T = 0.1 sec. generating the three sequences ) 6 cos( ) ( 1 t t g   ) 14 cos( ) ( 2 t t g   ) 26 cos( ) ( 3 t t g   ) 6 . 2 cos( ] [ 3 n n g   ) 6 . 0 cos( ] [ 1 n n g   ) 4 . 1 cos( ] [ 2 n n g  
  • 86. The Sampling Process • Plots of these sequences (shown with circles) and their parent time functions are shown below: • Note that each sequence has exactly the same sample value for any given n 0 0.2 0.4 0.6 0.8 1 -1 -0.5 0 0.5 1 time Amplitude
  • 87. The Sampling Process • This fact can also be verified by observing that • As a result, all three sequences are identical and it is difficult to associate a unique continuous-time function with each of these sequences   ) 6 . 0 cos( ) 6 . 0 2 ( cos ) 4 . 1 cos( ] [ 2 n n n n g           ) 6 . 0 cos( ) 6 . 0 2 ( cos ) 6 . 2 cos( ] [ 3 n n n n g        
  • 88. The Sampling Process • The above phenomenon of a continuous- time signal of higher frequency acquiring the identity of a sinusoidal sequence of lower frequency after sampling is called aliasing
  • 89. The Sampling Process • Since there are an infinite number of continuous-time signals that can lead to the same sequence when sampled periodically, additional conditions need to imposed so that the sequence can uniquely represent the parent continuous- time signal • In this case, can be fully recovered from {x[n]} )} ( { ]} [ { nT x n x a  ) (t xa ) (t xa
  • 90. The Sampling Process • Example - Determine the discrete-time signal v[n] obtained by uniformly sampling at a sampling rate of 200 Hz the continuous- time signal • Note: is composed of 5 sinusoidal signals of frequencies 30 Hz, 150 Hz, 170 Hz, 250 Hz and 330 Hz ) 340 cos( 2 ) 300 sin( 3 ) 60 cos( 6 ) ( t t t t va       ) 660 sin( 10 ) 500 cos( 4 t t     ) (t va
  • 91. The Sampling Process • The sampling period is • The generated discrete-time signal v[n] is thus given by sec 005 . 0 200 1   T ) 7 . 1 cos( 2 ) 5 . 1 sin( 3 ) 3 . 0 cos( 6 ] [ n n n n v       ) ( ) ( ) 3 . 0 2 ( cos 2 ) 5 . 0 2 ( sin 3 ) 3 . 0 cos( 6 n n n           ) 3 . 3 sin( 10 ) 5 . 2 cos( 4 n n     ) ( ) ( ) 7 . 0 4 ( sin 10 ) 5 . 0 2 ( cos 4 n n        
  • 92. The Sampling Process • Note: v[n] is composed of 3 discrete-time sinusoidal signals of normalized angular frequencies: 0.3, 0.5, and 0.7 ) 5 . 0 cos( 4 ) 3 . 0 cos( 2 ) 5 . 0 sin( 3 ) 3 . 0 cos( 6 n n n n         ) 7 . 0 sin( 10 n   ) 7 . 0 sin( 10 ) 6435 . 0 5 . 0 cos( 5 ) 3 . 0 cos( 8 n n n       
  • 93. The Sampling Process • Note: An identical discrete-time signal is also generated by uniformly sampling at a 200-Hz sampling rate the following continuous-time signals: ) 140 sin( 10 ) 6435 . 0 100 cos( 5 ) 60 cos( 8 ) ( t t t t a w        ) 260 sin( 10 ) 100 cos( 4 ) 60 cos( 2 ) ( t t t t a g       ) 700 sin( 3 ) 460 cos( 6 t t    
  • 94. The Sampling Process • Recall • Thus if , then the corresponding normalized digital angular frequency of the discrete-time signal obtained by sampling the parent continuous-time sinusoidal signal will be in the range • No aliasing T o o      2 o  o T    2      
  • 95. The Sampling Process • On the other hand, if , the normalized digital angular frequency will foldover into a lower digital frequency in the range because of aliasing • Hence, to prevent aliasing, the sampling frequency should be greater than 2 times the frequency of the sinusoidal signal being sampled o T    2               2 / 2 T o o T  o 
  • 96. The Sampling Process • Generalization: Consider an arbitrary continuous-time signal composed of a weighted sum of a number of sinusoidal signals • can be represented uniquely by its sampled version {x[n]} if the sampling frequency is chosen to be greater than 2 times the highest frequency contained in ) (t xa ) (t xa T  ) (t xa
  • 97. The Sampling Process • The condition to be satisfied by the sampling frequency to prevent aliasing is called the sampling theorem • A formal proof of this theorem will be presented later
  • 98. 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: System time Discrete x[n] y[n] Input sequence Output sequence
  • 99. Discrete-Time Systems: Examples • 2-input, 1-output discrete-time systems - Modulator, adder • 1-input, 1-output discrete-time systems - Multiplier, unit delay, unit advance
  • 100. Discrete-Time Systems: Examples • Accumulator - • The output y[n] at time instant n is the sum of the input sample x[n] at time instant n and the previous output at time instant which is the sum of all previous input sample values from to • The system cumulatively adds, i.e., it accumulates all input sample values     n x n y  ] [ ] [ ] [ ] 1 [ ] [ ] [ 1 n x n y n x x n            ] 1 [  n y , 1  n 1  n  
  • 101. Discrete-Time Systems:Examples • Accumulator - Input-output relation can also be written in the form • The second form is used for a causal input sequence, in which case is called the initial condition         n x x n y 0 1 ] [ ] [ ] [     , ] [ ] 1 [ 0      n x y   ] 1 [ y 0  n
  • 102. Discrete-Time Systems:Examples • M-point moving-average system - • Used in smoothing random variations in data • An application: Consider x[n] = s[n] + d[n], where s[n] is the signal corrupted by a noise d[n]      1 0 ] [ 1 ] [ M k k n x M n y
  • 103. d[n] - random signal ], ) 9 . 0 ( [ 2 ] [ n n n s  Discrete-Time Systems:Examples 0 10 20 30 40 50 -2 0 2 4 6 8 Time index n Amplitude d[n] s[n] x[n] 0 10 20 30 40 50 0 1 2 3 4 5 6 7 Time index n Amplitude s[n] y[n]
  • 104. Discrete-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
  • 105. Discrete-Time Systems: Examples • Factor-of-2 interpolator - • Factor-of-3 interpolator -   ] 1 [ ] 1 [ 2 1 ] [ ] [      n x n x n x n y u u u   ] 2 [ ] 1 [ 3 1 ] [ ] [      n x n x n x n y u u u   ] 1 [ ] 2 [ 3 2     n x n x u u
  • 106. Discrete-Time Systems: Classification • Linear System • Shift-Invariant System • Causal System • Stable System • Passive and Lossless Systems
  • 107. Linear Discrete-Time Systems • Definition - If is the output due to an input and is the output due to an input then for an input the output is given by • Above property must hold for any arbitrary constants and and for all possible inputs and ] [ 1 n y ] [ 1 n x ] [ 2 n x ] [ 2 n y ] [ ] [ ] [ 2 1 n x n x n x     ] [ ] [ ] [ 2 1 n y n y n y      ,  ] [ 1 n x ] [ 2 n x
  • 108. Accumulator: Linear Discrete-Time System? • Accumulator - • For an input the output is • Hence, the above system is linear         n n x n y x n y     ] [ ] [ , ] [ ] [ 2 2 1 1 ] [ ] [ ] [ 2 1 n x n x n x            n x x n y    ] [ ] [ ] [ 2 1   ] [ ] [ ] [ ] [ 2 1 2 1 n y n y x x n n                  
  • 109. Causal Accumulator: Linear Discrete-Time System? • The outputs and for inputs and are given by • The output y[n] for an input is given by      n x y n y 0 1 1 1 1  ] [ ] [ ] [      n x y n y 0 2 2 2 1  ] [ ] [ ] [ ] [n y1 ] [n y2 ] [n x2 ] [n x1 ] [ ] [ n x n x 2 1          n x x y n y 0 2 1 1    ]) [ ] [ ( ] [ ] [  
  • 110. Causal Accumulator cont.: Linear Discrete-Time System? • Now • Thus if ] [ ] [ n y n y 2 1    ) ] [ ] [ (      n x y 0 2 2 1    ) ] [ ] [ (      n x y 0 1 1 1    ) ] [ ] [ ( ]) [ ] [ (           n n x x y y 0 2 0 1 2 1 1 1         ] [ ] [ ] [ n y n y n y 2 1     ] [ ] [ ] [ 1 1 1 2 1      y y y  
  • 111. Causal Accumulator cont.: Linear Discrete-Time System? • For the causal accumulator to be linear the condition must hold for all initial conditions , , , and all constants  and  • This condition cannot be satisfied unless the accumulator is initially at rest with zero initial condition • For nonzero initial condition, the system is nonlinear ] [ ] [ ] [ 1 1 1 2 1      y y y   ] [ 1  y ] [ 1 1  y ] [ 1 2  y
  • 112. A Nonlinear Discrete-Time System • Consider • Outputs and for inputs and are given by ] [ ] [ ] [ ] [ 1 1 2     n x n x n x n y ] [n y1 ] [ ] [ ] [ ] [ 1 1 1 1 2 1 1     n x n x n x n y ] [n y2 ] [ ] [ ] [ ] [ 1 1 2 2 2 2 2     n x n x n x n y ] [n x2 ] [n x1
  • 113. A Nonlinear Discrete-Time System cont. • Output y[n] due to an input is given by ] [ ] [ n x n x 2 1    2 2 1 ]} [ ] [ { ] [ n x n x n y     ]} [ ] [ ]}{ [ ] [ { 1 1 1 1 2 1 2 1        n x n x n x n x     ]} [ ] [ ] [ { 1 1 1 1 2 1 2     n x n x n x  ]} [ ] [ ] [ { 1 1 2 2 2 2 2     n x n x n x  ]} [ ] [ ] [ ] [ ] [ ] [ { 1 1 1 1 2 2 1 2 1 2 1        n x n x n x n x n x n x 
  • 114. A Nonlinear Discrete-Time System cont. • On the other hand • Hence, the system is nonlinear ] [ ] [ n y n y 2 1    ]} [ ] [ ] [ { 1 1 1 1 2 1     n x n x n x  ]} [ ] [ ] [ { 1 1 2 2 2 2     n x n x n x  ] [n y 
  • 115. Shift (Time)-Invariant System • For a shift-invariant system, if is the response to an input , then the response to an input . is simply where is any positive or negative integer • The above relation must hold for any arbitrary input and its corresponding output • If n is discrete time, the above property is called time-invariance property ] [n y1 ] [n x1 ] [ ] [ o n n x n x   1 ] [ ] [ o n n y n y   1 o n
  • 116. Up-Sampler: Shift-Invariant System? • Example - Consider the up-sampler with an input-output relation given by • For an input the output is given by        otherwise , ..... , , , ], / [ ] [ 0 2 0 L L n L n x n xu ] [ ] [ o n n x n x   1 ] [ , n x u 1        otherwise , ..... , , , ], / [ ] [ , 0 2 0 1 1 L L n L n x n x u         otherwise , ..... , , , ], / ) [( 0 2 0 L L n L Ln n x o
  • 117. Up-Sampler: Shift-Invariant System? • However from the definition of the up-sampler • Hence, the up-sampler is a time-varying system ] [ o u n n x          otherwise , ..... , , , ], / ) [( 0 2L n L n n n L n n x o o o o ] [ , n x u 1 
  • 118. Linear Time-Invariant 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
  • 119. Causal System • In a causal system, the -th output sample depends only on input samples x[n] for and does not depend on input samples for • Let and be the responses of a causal discrete-time system to the inputs and , respectively o n o n n  o n n  ] [ o n y ] [n y1 ] [n y2 ] [n x2 ] [n x1
  • 120. Causal System • Then for n < N implies also that for n < N • For a causal system, changes in output samples do not precede changes in the input samples ] [ ] [ 2 1 n x n x  ] [ ] [ 2 1 n y n y 
  • 121. Causal System • Examples of causal systems: • Examples of noncausal systems: ] [ ] [ ] [ ] [ ] [ 3 2 1 4 3 2 1        n x n x n x n x n y     ] [ ] [ ] [ ] [ 2 1 2 1 0      n x b n x b n x b n y ] [ ] [ 2 1 2 1     n y a n y a ] [ ] [ ] [ n x n y n y    1 ]) [ ] [ ( ] [ ] [ 1 1 2 1      n x n x n x n y u u u
  • 122. Causal System • A noncausal system can be implemented as a causal system by delaying the output by an appropriate number of samples • For example a causal implementation of the factor-of-2 interpolator is given by ]) [ ] [ ( ] [ ] [ n x n x n x n y u u u      2 1 2 1
  • 123. Stable System • There are various definitions of stability • We consider here the bounded-input, bounded-output (BIBO) stability • If y[n] is the response to an input x[n] and if for all values of n then for all values of n x B n x  ] [ y B n y  ] [
  • 124. Stable System • Example - The M-point moving average filter is BIBO stable: • For a bounded input we have      1 0 1 M k M k n x n y ] [ ] [ x B n x  ] [           1 0 1 1 0 1 M k M M k M k n x k n x n y ] [ ] [ ] [ x x M B MB   ) ( 1
  • 125. Passive and Lossless Systems • A discrete-time system is defined to be passive if, for every finite-energy input x[n], the output y[n] has, at most, the same energy, i.e. • For a lossless system, the above inequality is satisfied with an equal sign for every input            n n n x n y 2 2 ] [ ] [
  • 126. Passive and Lossless Systems • Example - Consider the discrete-time system defined by with N a positive integer • Its output energy is given by • Hence, it is a passive system if and is a lossless system if ] [ ] [ N n x n y            n n n x n y 2 2 2 ] [ ] [  1   1  
  • 127. Impulse and Step Responses • The response of a discrete-time system to a unit sample sequence {[n]} is called the unit sample response or simply, the impulse response, and is denoted by {h[n]} • The response of a discrete-time system to a unit step sequence {[n]} is called the unit step response or simply, the step response, and is denoted by {s[n]}
  • 128. Impulse Response • Example - The impulse response of the system is obtained by setting x[n] = [n] resulting in • The impulse response is thus a finite-length sequence of length 4 given by ] [ ] [ ] [ ] [ ] [ 3 2 1 4 3 2 1        n x n x n x n x n y     ] [ ] [ ] [ ] [ ] [ 3 2 1 4 3 2 1        n n n n n h         } , , , { ]} [ { 4 3 2 1       n h
  • 129. Impulse Response • Example - The impulse response of the discrete-time accumulator is obtained by setting x[n] = [n] resulting in     n x n y  ] [ ] [ ] [ ] [ ] [ n n h n         
  • 130. Impulse Response • Example - The impulse response {h[n]} of the factor-of-2 interpolator is obtained by setting and is given by • The impulse response is thus a finite-length sequence of length 3: ]) [ ] [ ( ] [ ] [ 1 1 2 1      n x n x n x n y u u u ]) [ ] [ ( ] [ ] [ 1 1 2 1      n n n n h    } . , . { ]} [ { 5 0 1 5 0   n h ] [ ] [ n n xu  
  • 131. Time-Domain Characterization of LTI Discrete-Time System • Input-Output Relationship - It can be shown that a consequence of the linear, time-invariance property is that an LTI discrete-time system is completely characterized by its impulse response • Knowing the impulse response one can compute the output of the system for any arbitrary input
  • 132. Time-Domain Characterization of LTI Discrete-Time System • Let h[n] denote the impulse response of a LTI discrete-time system • We compute its output y[n] for the input: • As the system is linear, we can compute its outputs for each member of the input separately and add the individual outputs to determine y[n] ] 5 [ 75 . 0 ] 2 [ ] 1 [ 5 . 1 ] 2 [ 5 . 0 ] [             n n n n n x
  • 133. Time-Domain Characterization of LTI Discrete-Time System • Since the system is time-invariant input output ] 2 [ ] 2 [     n h n ] 1 [ ] 1 [     n h n ] 2 [ ] 2 [     n h n ] 5 [ ] 5 [     n h n
  • 134. Time-Domain Characterization of LTI Discrete-Time System • Likewise, as the system is linear • Hence because of the linearity property we get ] 5 [ 75 . 0 ] 5 [ 75 . 0     n h n input output ] 2 [ 5 . 0 ] 2 [ 5 . 0     n h n ] 2 [ ] 2 [       n h n ] 1 [ 5 . 1 ] 1 [ 5 . 1     n h n ] [ . ] [ . ] [ 1 5 1 2 5 0     n h n h n y ] [ . ] [ 5 75 0 2     n h n h
  • 135. Time-Domain Characterization of LTI Discrete-Time System • Now, any arbitrary input sequence x[n] can be expressed as a linear combination of delayed and advanced unit sample sequences in the form • The response of the LTI system to an input will be        k k n k x n x ] [ ] [ ] [ ] [ ] [ k n k x   ] [ ] [ k n h k x 
  • 136. Time-Domain Characterization of LTI Discrete-Time System • Hence, the response y[n] to an input will be which can be alternately written as        k k n k x n x ] [ ] [ ] [       k k n h k x n y ] [ ] [ ] [       k k h k n x n y ] [ ] [ ] [
  • 137. Convolution Sum • The summation is called the convolution sum of the sequences x[n] and h[n] and represented compactly as             k k n h k n x k n h k x n y ] [ ] [ ] [ ] [ ] [ y[n] = x[n] h[n] *
  • 138. Convolution Sum • Properties - • Commutative property: • Associative property : • Distributive property : x[n] h[n] = h[n] x[n] * * (x[n] h[n]) y[n] = x[n] (h[n] y[n]) * * * * x[n] (h[n] + y[n]) = x[n] h[n] + x[n] y[n] * * *
  • 139. Simple Interconnection Schemes • Two simple interconnection schemes are: • Cascade Connection • Parallel Connection
  • 140. Cascade Connection • Impulse response h[n] of the cascade of two LTI discrete-time systems with impulse responses and is given by ] [n h1 ] [n h2 ] [n h1 ] [n h2  ] [ ] [ n h n h 1  ] [n h2 ] [n h1 *  ] [n h1 ] [n h2 ] [n h2 ] [ ] [ n h n h 1  *
  • 141. Cascade Connection • Note: The ordering of the systems in the cascade has no effect on the overall impulse response because of the commutative property of convolution • A cascade connection of two stable systems is stable • A cascade connection of two passive (lossless) systems is passive (lossless)
  • 142. Cascade Connection • An application is in the development of an inverse system • If the cascade connection satisfies the relation then the LTI system is said to be the inverse of and vice-versa ] [n h1 ] [n h2 ] [n h2 ] [ 1 n h ] [n   *
  • 143. Cascade Connection • An application of the inverse system concept is in the recovery of a signal x[n] from its distorted version appearing at the output of a transmission channel • If the impulse response of the channel is known, then x[n] can be recovered by designing an inverse system of the channel ] [ ˆ n x ] [n h2 ] [n h1 ] [n x ] [n x channel inverse system ] [n x ^ ] [n h2 ] [n h1 ] [n   *
  • 144. Cascade Connection • Example - Consider the discrete-time accumulator with an impulse response [n] • Its inverse system satisfy the condition • It follows from the above that for n < 0 and for 0 2  ] [n h 1 1 2  ] [ h 0 0 2    n h  ] [ 2  n ] [n h2 ] [n  ] [n   *
  • 145. Cascade Connection • Thus the impulse response of the inverse system of the discrete-time accumulator is given by which is called a backward difference system ] 1 [ ] [ ] [ 2      n n n h
  • 146. Parallel Connection • Impulse response h[n] of the parallel connection of two LTI discrete-time systems with impulse responses and is given by ] [n h2 ] [n h1  ] [ ] [ n h n h 1  ] [n h2 ] [n h1   ] [n h1 ] [n h2 ] [ ] [ ] [ n h n h n h 2 1  
  • 147. Simple Interconnection Schemes • Consider the discrete-time system where ] [n h2 ] [n h1   ] [n h4 ] [n h3 ], 1 [ 5 . 0 ] [ ] [ 1      n n n h ], 1 [ 25 . 0 ] [ 5 . 0 ] [ 2      n n n h ], [ 2 ] [ 3 n n h   ] [ ) 5 . 0 ( 2 ] [ 4 n n h n   
  • 148. Simple Interconnection Schemes • Simplifying the block-diagram we obtain ] [n h2 ] [n h1  ] [ ] [ 4 3 n h n h  ] [n h1  ]) [ ] [ ( ] [ 4 3 2 n h n h n h  * 
  • 149. Simple Interconnection Schemes • Overall impulse response h[n] is given by • Now, ] [ ] [ ] [ ] [ ] [ n h n h n h n h n h 4 2 3 2 1    ]) [ ] [ ( ] [ ] [ ] [ n h n h n h n h n h 4 3 2 1    * * * ] [ 2 ]) 1 [ ] [ ( ] [ ] [ 4 1 2 1 3 2 n n n n h n h       ] 1 [ ] [ 2 1      n n * *
  • 150. Simple Interconnection Schemes • Therefore ] 1 [ ) ( ] [ ) ( 1 2 1 2 1 2 1        n n n n ] 1 [ ) ( ] [ ) ( 2 1 2 1       n n n n ] [ ] [ ) (2 1 n n n       ] [ ] [ ] 1 [ ] [ ] 1 [ ] [ ] [ 2 1 2 1 n n n n n n n h                 ] [ ) ( 2 ]) 1 [ ] [ ( ] [ ] [ 2 1 4 1 2 1 4 2 n n n n h n h n       * *
  • 151. BIBO Stability Condition of an LTI Discrete-Time System • BIBO Stability Condition - A discrete-time is BIBO stable if the output sequence {y[n]} remains bounded for all bounded input sequence {x[n]} • An LTI discrete-time system is BIBO stable if and only if its impulse response sequence {h[n]} is absolutely summable, i.e.        n n h ] [ S
  • 152. BIBO Stability Condition of an LTI Discrete-Time System • Proof: Assume h[n] is a real sequence • Since the input sequence x[n] is bounded we have • Therefore    x B n x ] [ ] [ ] [ ] [ ] [ ] [ k n x k h k n x k h n y k k             S B k h B x k x       ] [
  • 153. BIBO Stability Condition of an LTI Discrete-Time System • Thus, S < implies indicating that y[n] is also bounded • To prove the converse, assume y[n] is bounded, i.e., • Consider the input given by     y B n y ] [ y B n y  ] [          0 0 ] [ if , ] [ if ]), [ sgn( ] [ n h K n h n h n x
  • 154. BIBO Stability Condition of an LTI Discrete-Time System where sgn(c) = +1 if c > 0 and sgn(c) = if c < 0 and • Note: Since , {x[n]} is obviously bounded • For this input, y[n] at n = 0 is • Therefore, implies S < 1  1  K y B n y  ] [  1  ] [n x S k h k h y k       ] [ ]) [ sgn( ] 0 [    y B
  • 155. • Example - Consider a causal LTI discrete-time system with an impulse response • For this system , • Therefore S < if for which the system is BIBO stable • If , the system is not BIBO stable Stability Condition of an LTI Discrete-Time System  1   1   ] [ ) ( ] [ n n h n    1                  1 1 ] [ 0 n n n n n S
  • 156. Causality Condition of an LTI Discrete-Time System • Let and be two input sequences with • The corresponding output samples at of an LTI system with an impulse response {h[n]} are then given by ] [n x1 ] [n x2 ] [ ] [ n x n x 2 1  o n n  for o n n 
  • 157. Causality Condition of an LTI Discrete-Time System            0 2 2 2 k o k o o k n x k h k n x k h n y ] [ ] [ ] [ ] [ ] [       1 2 k o k n x k h ] [ ] [            0 1 1 1 k o k o o k n x k h k n x k h n y ] [ ] [ ] [ ] [ ] [       1 1 k o k n x k h ] [ ] [
  • 158. Causality Condition of an LTI Discrete-Time System • If the LTI system is also causal, then • As • This implies ] [ ] [ n x n x 2 1  o n n  for ] [ ] [ o o n y n y 2 1           0 2 0 1 k o k o k n x k h k n x k h ] [ ] [ ] [ ] [            1 2 1 1 k o k o k n x k h k n x k h ] [ ] [ ] [ ] [
  • 159. Causality Condition of an LTI Discrete-Time System • As for the only way the condition will hold if both sums are equal to zero, which is satisfied if ] [ ] [ n x n x 2 1  o n n             1 2 1 1 k o k o k n x k h k n x k h ] [ ] [ ] [ ] [ 0  ] [k h for k < 0
  • 160. Causality Condition of an LTI Discrete-Time System • An LTI discrete-time system is causal if and only if its impulse response {h[n]} is a causal sequence • Example - The discrete-time system defined by is a causal system as it has a causal impulse response ] 3 [ ] 2 [ ] 1 [ ] [ ] [ 4 3 2 1            n x n x n x n x n y } { ]} [ { 4 3 2 1      n h 
  • 161. Causality Condition of an LTI Discrete-Time System • Example - The discrete-time accumulator defined by is a causal system as it has a causal impulse response given by ] [ ] [ ] [ n n y n          ] [ ] [ ] [ n n h n         
  • 162. Causality Condition of an LTI Discrete-Time System • Example - The factor-of-2 interpolator defined by is noncausal as it has a noncausal impulse response given by   ] 1 [ ] 1 [ ] [ ] [ 2 1      n x n x n x n y u u u } 5 . 0 1 5 . 0 { ]} [ {  n h 
  • 163. Causality Condition of an LTI Discrete-Time System • Note: A noncausal LTI discrete-time system with a finite-length impulse response can often be realized as a causal system by inserting an appropriate amount of delay • For example, a causal version of the factor- of-2 interpolator is obtained by delaying the input by one sample period:   ] [ ] 2 [ ] 1 [ ] [ 2 1 n x n x n x n y u u u     
  • 164. Finite-Dimensional LTI Discrete-Time Systems • An important subclass of LTI discrete-time systems is characterized by a linear constant coefficient difference equation of the form • x[n] and y[n] are, respectively, the input and the output of the system • and are constants characterizing the system } { k d } { k p        M k k N k k k n x p k n y d 0 0 ] [ ] [
  • 165. Finite-Dimensional LTI Discrete-Time Systems • The order of the system is given by max(N,M), which is the order of the difference equation • It is possible to implement an LTI system characterized by a constant coefficient difference equation as here the computation involves two finite sums of products
  • 166. Finite-Dimensional LTI Discrete-Time Systems • If we assume the system to be causal, then the output y[n] can be recursively computed using provided • y[n] can be computed for all , knowing x[n] and the initial conditions 0 0  d o n n  ] [ , . . . ], 2 [ ], 1 [ N n y n y n y o o o    ] [ ] [ ] [ 1 0 1 0 k n x d p k n y d d n y M k k N k k         
  • 167. Classification of LTI Discrete- Time Systems Based on Impulse Response Length - • If the impulse response h[n] is of finite length, i.e., then it is known as a finite impulse response (FIR) discrete-time system • The convolution sum description here is 2 1 2 1 , and for 0 ] [ N N N n N n n h         2 1 ] [ ] [ ] [ N N k k n x k h n y
  • 168. Classification of LTI Discrete- Time Systems • The output y[n] of an FIR LTI discrete-time system can be computed directly from the convolution sum as it is a finite sum of products • Examples of FIR LTI discrete-time systems are the moving-average system and the linear interpolators
  • 169. Classification of LTI Discrete- Time Systems • If the impulse response is of infinite length, then it is known as an infinite impulse response (IIR) discrete-time system • The class of IIR systems we are concerned with in this course are characterized by linear constant coefficient difference equations
  • 170. Classification of LTI Discrete- Time Systems • Example - The discrete-time accumulator defined by is seen to be an IIR system ] [ ] 1 [ ] [ n x n y n y   
  • 171. Classification of LTI Discrete- Time Systems • Example - The familiar numerical integration formulas that are used to numerically solve integrals of the form can be shown to be characterized by linear constant coefficient difference equations, and hence, are examples of IIR systems     t d x t y 0 ) ( ) (
  • 172. Classification of LTI Discrete- Time Systems • If we divide the interval of integration into n equal parts of length T, then the previous integral can be rewritten as where we have set t = nT and used the notation        nT T n d x T n y nT y ) 1 ( ) ( ) ) 1 (( ) (     nT d x nT y 0 ) ( ) (
  • 173. Classification of LTI Discrete- Time Systems • Using the trapezoidal method we can write • Hence, a numerical representation of the definite integral is given by )} ( ) ) 1 (( { ) ( 2 ) 1 ( nT x T n x d x T nT T n        )} ( ) ) 1 (( { ) ) 1 (( ) ( 2 nT x T n x T n y nT y T     
  • 174. Classification of LTI Discrete- Time Systems • Let y[n] = y(nT) and x[n] = x(nT) • Then reduces to which is recognized as the difference equation representation of a first-order IIR discrete-time system )} ( ) ) 1 (( { ) ) 1 (( ) ( 2 nT x T n x T n y nT y T      ]} 1 [ ] [ { ] 1 [ ] [ 2      n x n x n y n y T
  • 175. Classification of LTI Discrete- Time Systems Based on the Output Calculation Process • Nonrecursive System - Here the output can be calculated sequentially, knowing only the present and past input samples • Recursive System - Here the output computation involves past output samples in addition to the present and past input samples
  • 176. Classification of LTI Discrete- Time Systems Based on the Coefficients - • Real Discrete-Time System - The impulse response samples are real valued • Complex Discrete-Time System - The impulse response samples are complex valued
  • 177. Correlation of Signals Definitions • A measure of similarity between a pair of energy signals, x[n] and y[n], is given by the cross-correlation sequence defined by • The parameter called lag, indicates the time-shift between the pair of signals  ] [ xy r ... , , , ], [ ] [ ] [ 2 1 0             n xy n y n x r
  • 178. Correlation of Signals • If y[n] is made the reference signal and we wish to shift x[n] with respect to y[n], then the corresponding cross-correlation sequence is given by • Thus, is obtained by time-reversing      n yx n x n y r ] [ ] [ ] [   ] [ ] [ ] [          xy m r m x m y ] [ yx r ] [ xy r
  • 179. Correlation of Signals • The autocorrelation sequence of x[n] is given by obtained by setting y[n] = x[n] in the definition of the cross-correlation sequence • Note: , the energy of the signal x[n]      n xx n x n x r ] [ ] [ ] [   ] [ xy r x n xx n x r E      ] [ ] [ 2 0
  • 180. Correlation of Signals • From the relation it follows that implying that is an even function for real x[n] • An examination of reveals that the expression for the cross- correlation looks quite similar to that of the linear convolution ] [ ] [     xy yx r r ] [ ] [     xx xx r r ] [ xx r      n xy n y n x r ] [ ] [ ] [  
  • 181. Correlation of Signals • This similarity is much clearer if we rewrite the expression for the cross-correlation as • The cross-correlation of y[n] with the reference signal x[n] can be computed by processing x[n] with an LTI discrete-time system of impulse response ] [ n y  ] [ ] [ )] ( [ ] [ ] [             y x n y n x r n xy * ] [ n y  ] [n x ] [n rxy
  • 182. Correlation of Signals • Likewise, the autocorrelation of x[n] can be computed by processing x[n] with an LTI discrete-time system of impulse response ] [ n x  ] [n x ] [n rxx ] [ n x 
  • 183. Properties of Autocorrelation and Cross-correlation Sequences • Consider two finite-energy sequences x[n] and y[n] • The energy of the combined sequence is also finite and nonnegative, i.e., ] [ ] [    n y n x a            n n n x a n y n x a ] [ ]) [ ] [ ( 2 2 2  0 2 2              n n n y n y n x a ] [ ] [ ] [  
  • 184. Properties of Autocorrelation and Cross-correlation Sequences • Thus where and • We can rewrite the equation on the previous slide as for any finite value of a 0 0 2 0 2    ] [ ] [ ] [ yy xy xx r r a r a  0 0   x xx r E ] [ 0 0   y yy r E ] [   0 1 0 0 1              a r r r r a yy xy xy xx ] [ ] [ ] [ ] [  
  • 185. Properties of Autocorrelation and Cross-correlation Sequences • Or, in other words, the matrix is positive semidefinite •       ] [ ] [ ] [ ] [ 0 0 yy xy xy xx r r r r   0 0 0 2   ] [ ] [ ] [  xy yy xx r r r y x yy xx xy r r r E E   ] [ ] [ | ] [ | 0 0 
  • 186. Properties of Autocorrelation and Cross-correlation Sequences • The last inequality on the previous slide provides an upper bound for the cross- correlation samples • If we set y[n] = x[n], then the inequality reduces to x xx xx r r E ] 0 [ | ] [ |   
  • 187. Properties of Autocorrelation and Cross-correlation Sequences • Thus, at zero lag ( ), the sample value of the autocorrelation sequence has its maximum value • Now consider the case where N is an integer and b > 0 is an arbitrary number • In this case 0   x y b E E 2  ] [ ] [ N n x b n y   
  • 188. Properties of Autocorrelation and Cross-correlation Sequences • Therefore • Using the above result in we get x x y x b b E E E E   2 2 y x yy xx xy r r r E E   ] [ ] [ | ] [ | 0 0  ] [ ] [ ] [ 0 0 xx xy xx r b r r b    
  • 189. Correlation Computation Using MATLAB • The cross-correlation and autocorrelation sequences can easily be computed using MATLAB • Example - Consider the two finite-length sequences   2 4 4 1 2 1 2 3 1    ] [n x   3 2 1 4 1 2    ] [n y
  • 190. Correlation Computation Using MATLAB • The cross-correlation sequence computed using Program 2_7 of text is plotted below ] [n rxy -4 -2 0 2 4 6 8 -10 0 10 20 30 Lag index Amplitude
  • 191. Correlation Computation Using MATLAB • The autocorrelation sequence computed using Program 2_7 is shown below • Note: At zero lag, is the maximum ] [ xx r ] [0 xx r -5 0 5 -20 0 20 40 60 Lag index Amplitude
  • 192. Correlation Computation Using MATLAB • The plot below shows the cross-correlation of x[n] and for N = 4 • Note: The peak of the cross-correlation is precisely the value of the delay N ] [ ] [ N n x n y   -10 -5 0 5 -20 0 20 40 60 Lag index Amplitude
  • 193. Correlation Computation Using MATLAB • The plot below shows the autocorrelation of x[n] corrupted with an additive random noise generated using the function randn • Note: The autocorrelation still exhibits a peak at zero lag -5 0 5 0 20 40 60 80 Lag index Amplitude
  • 194. Correlation Computation Using MATLAB • The autocorrelation and the cross- correlation can also be computed using the function xcorr • However, the correlation sequences generated using this function are the time- reversed version of those generated using Programs 2_7 and 2_8
  • 195. Normalized Forms of Correlation • Normalized forms of autocorrelation and cross-correlation are given by • They are often used for convenience in comparing and displaying • Note: and independent of the range of values of x[n] and y[n] ] [ ] [ ] [ ] [ , ] [ ] [ ] [ 0 0 0 yy xx xy xy xx xx xx r r r r r         1  | ] [ |  xx  1  | ] [ |  xy 
  • 196. Correlation Computation for Power Signals • The cross-correlation sequence for a pair of power signals, x[n] and y[n], is defined as • The autocorrelation sequence of a power signal x[n] is given by         K K n K xy n y n x K r ] [ ] [ lim ] [   1 2 1         K K n K xx n x n x K r ] [ ] [ lim ] [   1 2 1
  • 197. Correlation Computation for Periodic Signals • The cross-correlation sequence for a pair of periodic signals of period N, and , is defined as • The autocorrelation sequence of a periodic signal of period N is given by ] [n x ~ ] [n y ~ ] [n x ~      1 0 1 N n N xy n y n x r ] [ ] [ ] [   ~ ~ ~~      1 0 1 N n N xx n x n x r ] [ ] [ ] [   ~ ~ ~~
  • 198. Correlation Computation for Periodic Signals • Note: Both and are also periodic signals with a period N • The periodicity property of the autocorrelation sequence can be exploited to determine the period of a periodic signal that may have been corrupted by an additive random disturbance ] [ xy r~~ ] [ xx r~~
  • 199. Correlation Computation for Periodic Signals • Let be a periodic signal corrupted by the random noise d[n] resulting in the signal which is observed for where ] [n x ~ ] [ ] [ ] [ n d n x n w   ~ 1 0    M n N M  
  • 200. Correlation Computation for Periodic Signals • The autocorrelation of w[n] is given by      1 0 1 ] [ ] [ ] [ M n M ww n w n w r           1 0 1 ]) [ ] [ ])( [ ] [ ( M n M n d n x n d n x   ~ ~           1 0 1 1 0 1 ] [ ] [ ] [ ] [ M n M M n M n d n d n x n x             1 0 1 1 0 1 ] [ ] [ ] [ ] [ M n M M n M n x n d n d n x   ~ ~ ~ ~ ] [ ] [ ] [ ] [     dx xd dd xx r r r r     ~ ~ ~ ~
  • 201. Correlation Computation for Periodic Signals • In the last equation on the previous slide, is a periodic sequence with a period N and hence will have peaks at with the same amplitudes as approaches M • As and d[n] are not correlated, samples of cross-correlation sequences and are likely to be very small relative to the amplitudes of . . . , 2 , , 0 N N    ] [ xx r ~ ~ ] [n x ~ ] [ xx r ~ ~ ] [ xd r~ ~ ] [ dx r
  • 202. Correlation Computation for Periodic Signals • The autocorrelation of d[n] will show a peak at = 0 with other samples having rapidly decreasing amplitudes with increasing values of • Hence, peaks of for > 0 are essentially due to the peaks of and can be used to determine whether is a periodic sequence and also its period N if the peaks occur at periodic intervals   | | ] [ ww r ] [ xx r ~ ~ ] [n x ~ ] [ dd r
  • 203. Correlation Computation of a Periodic Signal Using MATLAB • Example - We determine the period of the sinusoidal sequence , corrupted by an additive uniformly distributed random noise of amplitude in the range • Using Program 2_8 of text we arrive at the plot of shown on the next slide ) 25 . 0 cos( ] [ n n x  95 0   n ] 5 . 0 , 5 . 0 [ ] [ ww r
  • 204. Correlation Computation of a Periodic Signal Using MATLAB • As can be seen from the plot given above, there is a strong peak at zero lag • However, there are distinct peaks at lags that are multiples of 8 indicating the period of the sinusoidal sequence to be 8 as expected -20 -10 0 10 20 -60 -40 -20 0 20 40 60 Lag index Amplitude
  • 205. Correlation Computation of a Periodic Signal Using MATLAB • Figure below shows the plot of • As can be seen shows a very strong peak at only zero lag -20 -10 0 10 20 -2 0 2 4 6 8 Lag index Amplitude ] [ dd r ] [ dd r