SlideShare a Scribd company logo
1 of 28
Download to read offline
BME 310 Biomedical Computing -
J.Schesser
152
Sampling and Aliasing
Lecture #6
Chapter 4
BME 310 Biomedical Computing -
J.Schesser
153
What Is this Course All About ?
• To Gain an Appreciation of the
Various Types of Signals and Systems
• To Analyze The Various Types of
Systems
• To Learn the Skills and Tools needed
to Perform These Analyses.
• To Understand How Computers
Process Signals and Systems
BME 310 Biomedical Computing -
J.Schesser
154
Discrete-time Signals and Computers
• Up to now we have been studying continuous-time signals (also
called analog signals) such as
• However, digital computers and computer programs can not
process analog signals.
• Instead they store discrete-time versions of analog signals
• This is because digital computers can only store discrete
numbers.
– There are computers called analog computers which do process
continuous-time signals
• Since the computer only stores numbers, how does one know
what continuous-time signal it represents?
( ) cos( )
o
x t A t
 
 
)
(
]
[ s
nT
x
n
x 
BME 310 Biomedical Computing -
J.Schesser
155
Sampling
• We can obtain a discrete-time signal by sampling a
continuous-time signal at equally spaced time
instants, tn = nTs
x[n] = x(nTs) -∞ < n < ∞
• The individual values x[n] are called the samples of
the continuous time signal, x(t).
• The fixed time interval between samples, Ts, is also
expressed in terms of a sampling rate fs (in samples
per second) such that:
fs = 1/ Ts samples/sec.
BME 310 Biomedical Computing -
J.Schesser
156
Continuous-to-Discrete Conversion
• By using a Continuous-to-Discrete (C-to-D)
converter, we can take continuous-time signals and
form a discrete-time signal.
• There are devices called Analog-to-Digital converters
(A-to-D)
• The books chooses to distinguish an C-to-D converter
from an A-to-D converter by defining a C-to-D as an
ideal device while A-to-D converters are practical
devices where real world problems are evident.
– Problems in sampling the amplitudes accurately
– Problems in sampling at the proper times
BME 310 Biomedical Computing -
J.Schesser
157
Discrete-Time Signals
• A discrete-time signal is
a sequence of numbers
and carry no
information about the
time-sequence.
• Looking at the
following diagram,
which (gray or solid)
waveform are these
(red) samples associated
with?
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
0 2 4 6 8 10
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
0 2 4 6 8 10
-1
-0.8
-0.6
-0.4
-0.2
0
0.2
0.4
0.6
0.8
1
0 2 4 6 8 10
BME 310 Biomedical Computing -
J.Schesser
158
Discrete-Time Sinusoidal Signals
• Since a Fourier series can be written for any continuous-time
signal, let’s concentrate on sinusoids
• We define a normalized frequency for the discrete sinusoidal
signal.
• is the normalized or discrete-time frequency
• Since we can have different signals with the same , then
there can be an infinite number of continuous-time signal
which yield the same discrete-time sinusoid!
[ ] ( ) cos( )
ˆ
cos( )
ˆ
s s
s
s
x n x nT A nT
A n
T
f
 
 

 
  
 
 
̂
̂
BME 310 Biomedical Computing -
J.Schesser
159
Two Problems with Sampling
• Problem 1: How many samples are enough to
have to represent a continuous time signal?
• In this figure, we have a continuous-time signal
sampled every .4 seconds (red samples) and
every 1 second (black samples).
-1
0
1
0 2 4 6 8 10
BME 310 Biomedical Computing -
J.Schesser
160
Discrete-Time Sinusoidal Signals
• Problem 2: Can a set of samples be represent
more that one continuous-time signal


 4
.
)
1
)(
2
.
0
(
2
ˆ 

-1
0
1
0 2 4 6 8 10
• The discrete-time sinusoid
shown in the figure has
which can be obtain from, for
example, either a 1 second
sampled continuous-time
sinusoid with f = 0.2 Hz or 1.2
Hz.
• In the first case, where f = 0.2
Hz, we have:
BME 310 Biomedical Computing -
J.Schesser
161
Discrete-Time Sinusoidal Signals


 4
.
)
1
)(
2
.
0
(
2
ˆ 

ˆ
[ ] cos( )
ˆ 2 (1.2)(1) 2.4 2.4 2 .4
[ ] cos(2.4 ) cos(2 0.4 ) cos(0.4 )
x n A n
x n A n A n n A n
 
     
      
 
    
      
-1
0
1
0 2 4 6 8 10
• In the first case, where f = 0.2
Hz, we have:
• Since a sinusoid is periodic in
2, then for the case where
f=1.2 Hz
BME 310 Biomedical Computing -
J.Schesser
162
Aliasing
• This example
illustrates that two
sampled sinusoids can
produce the same
discrete-time signal.
1. cos [2π(0.2) t]
2. cos [2π(1.2) t]
-1
0
1
0 2 4 6 8 10
• When this occurs we say that that these signals
are aliases of each other.
BME 310 Biomedical Computing -
J.Schesser
163
Aliasing
• There are more alias signals for this example:
1. x(t) = cos (2π(0.2) t) => x[n] = cos (2π(0.2) 1n) = cos (0.4π n)
2. x(t) = cos (2π(1.2) t) => x[n] = cos (2π(1.2) 1n) = cos (2.4π n) =
cos (0.4 π n + 2 π n) = cos (0.4π n)
3. x(t) = cos (2π(.8) t) => x[n] = cos (2π(.8) 1n) = cos (1.6π n) =
cos (2 π n - 0.4 π n) = cos (0.4π n)
• In summary, (for l = positive
or negative integer):


0,1,2,3,
for
2
4
.
0
ˆ
),
cos(
)
-
cos(2
Since
0,1,2,3,
for
2
4
.
0
ˆ








l
l
l
l
l
l









-1
0
1
0 2 4 6 8 10
̂o, ̂o  2l, 2l ̂o
where ̂o is called the principal alias
BME 310 Biomedical Computing -
J.Schesser
164
Aliasing
• Let’s look at signals of the form: cos(ωlt)
Hz
8
1
2
1
8
0
2
0
2
.
0
2
4
.
0
2
2
)
ˆ
2
(
c
....rad/se
,
6
.
3
,
4
.
2
,
6
.
1
,
4
.
0
4
.
0
2
ˆ
2
Then,
.
1
and
4
.
0
is
ˆ
example,
our
In
2
)
ˆ
2
(
and
ˆ
2
or
2
)
ˆ
2
(
and
ˆ
2
ˆ
have
can
then we
,
)
2
cos(
)
cos(
)
cos(
since
2
)
2
ˆ
(
and
)
2
ˆ
(
ˆ
Therefore,
integer.
an
is
and
alias,
principal
the
is
ˆ
,
2
ˆ
ˆ
and
ˆ
ˆ
where
)
ˆ
cos(
)
cos(
, .....
.
,
.
.
,
.
l
l
f
l
f
l
l
f
f
l
f
l
f
l
f
l
f
l
f
f
l
f
l
l
f
T
n
t
s
o
l
o
l
s
o
s
o
l
o
l
s
o
l
o
l
s
o
l
s
o
s
l
l
o
o
l
s
l
s
l
l
l
sampled
l




















































































BME 310 Biomedical Computing -
J.Schesser
165
Shannon’s Sampling Theorem
• How frequently do we need to sample?
• The solution: Shannon’s Sampling Theorem:
A continuous-time signal x(t) with frequencies
no higher than fmax can be reconstructed
exactly from its samples x[n] = x(nTs), if the
samples are taken a rate fs = 1 / Ts that is
greater than 2 fmax.
• Note that the minimum sampling rate, 2 fmax ,
is called the Nyquist rate.
BME 310 Biomedical Computing -
J.Schesser
166
Spectrum of the Discrete-time
Signal
0.4 1.6 2.4
-0.4
-1.6
-2.4
0.5
• There are an infinite number of frequency
components of discrete-time signal
• They consists of the principal along with the
other aliases (an infinite number of them).
BME 310 Biomedical Computing -
J.Schesser
167
Nyquist Rate
• Shannon’s theorem tell us that if we have at
least 2 samples per period of a sinusoid, we
have enough information to reconstruct the
sinusoid.
• What happens if we sample at a rate which is
less than the Nyquist Rate?
– Aliasing will occur!!!!
BME 310 Biomedical Computing -
J.Schesser
168
Ideal Reconstruction
• The sampling theorem suggests that a process exists
for reconstructing a continuous-time signal from its
samples.
• If we know the sampling rate and know its spectrum
then we can reconstruct the continuous-time signal by
scaling the principal alias of the discrete-time signal
to the frequency of the continuous signal.
• The normalized frequency will always be in the range
between 0 ~ π and be the principal alias if the
sampling rate is greater than the Nyquist rate.
BME 310 Biomedical Computing -
J.Schesser
169
Ideal Reconstruction Continued
• If continuous-time signal has a frequency of ω, then the discrete-time
signal will have a principal alias of
• So we can use this equation to determine the frequency of the
continuous-time signal from the principal alias:
• Note that the normalized frequency must be less than  if the Nyquist
rate is used
• And the reconstructed continuous-time frequency must be
s
s
f
T


 

ˆ
s
s
T
f



ˆ
ˆ 






 





)
2
(
2
2
2
ˆ
MAX
s
MAX
s
MAX
s
MAX
s
MAX
f
f
f
f
f
T
f
T
max
ˆ
ˆ
2
2 2 2
s s s
s
f f f
f f f f
 
  
 
      
BME 310 Biomedical Computing -
J.Schesser
170
Oversampling
• When we sample at a rate which is greater than the Nyquist
rate, we say we are oversampling.
• If we are sampling a 100 Hz signal, the Nyquist rate is 200
samples/second => x(t)=cos(2π(100)t+π/3)
• If we sample at 2.5 times the Nyquist rate, then fs = 500
samples/sec
• This will yield a normalized frequency at 2π(100/500) = 0.4π
-1
0
1
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
BME 310 Biomedical Computing -
J.Schesser
171
Oversampling
• Since we are greater than the Nyquist rate, the normalized
frequency will be < π which means it is the principal alias.
• And we get back the original continuous frequency when we
do the reconstruction
• f = 0.4πfs / 2π = 0.4π500 / 2π = 0.2 (500) = 100 Hz
0.4π 1.6π 2.4π
-0.4π
-1.6π
-2.4π
0.5
BME 310 Biomedical Computing -
J.Schesser
172
Undersampling and Aliasing
• When we sample at a rate which is less than the Nyquist rate,
we say we are undersampling and aliasing will yield
misleading results.
• If we are sampling a 100 Hz signal, the Nyquist rate is 200
samples/second => x(t)=cos(2π(100)t+π/3)
• If we sample at .4 times the Nyquist rate, then fs = 80 s/sec
• This will yield a normalized frequency at 2π(100/80) = 2.5π
-1
0
1
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
BME 310 Biomedical Computing -
J.Schesser
173
Undersampling
• Since it is > π, 2.5π is NOT the principal alias
• The principle alias is 2.5π - 2π = 0.5π
• Using 0.5π as the principal alias and performing a reconstruction we then
have:
f = 0.5π fs / 2π = 0.5π 80 / 2π = 0.5 (40) = 20 Hz and we have
reconstructed the wrong signal!!!
0.5π 1.5π 2.5π
-0.5π
-1.5π
-2.5π
0.5
BME 310 Biomedical Computing -
J.Schesser
174
The Alias Problem due to
Undersampling
-1
0
1
0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
BME 310 Biomedical Computing -
J.Schesser
175
Aliasing and Folding
• Your book treats undersampling in terms of
aliasing and folding
• During reconstruction, both of these
phenomenon will produce erroneous results.
• The difference between aliasing and folding
has to do with which part of the spectrum
created the alias.
BME 310 Biomedical Computing -
J.Schesser
176
Discrete-to-Continuous Conversion
• An D-to-C converter uses the samples to
reconstruct the continuous-time signal by
interpolation.
• There are various interpolation algorithms
which may be used:
– Zero-Order Hold
– Linear
– Cubic Spline
BME 310 Biomedical Computing -
J.Schesser
177
Interpolation
• Oversampling always improves the reconstruction
• Best reconstruction is Low Pass Filter or what the text
calls: Ideal Bandlimited Interpolation
-1
0
1
0 2 4 6 8 10
-1
0
1
0 2 4 6 8 10
Zero-Order Hold Linear
BME 310 Biomedical Computing -
J.Schesser
178
Non-sinusoidal Signals
• Since a Fourier series can be written for any
continuous-time signal, the sampling and
reconstruction processes for any continuous-
time signal is the same
– Shannon’s Sampling theorem
– Nyquist Rate fs ≥ 2fmax to eliminate aliasing
– Oversampling to improve interpolation
– Ideal (low pass filter) Bandlimited interpolation
BME 310 Biomedical Computing -
J.Schesser
179
Homework
• Exercises:
– 4.1 – 4.5
• Problems:
– 4.1, 4.2, 4.3,
– 4.4, Use Matlab to plot the signal in part a.
– 4.5, 4.8, 4.11, 4.19

More Related Content

Similar to sampling-alising.pdf

Oscilloscope Lab
Oscilloscope LabOscilloscope Lab
Oscilloscope Labcyberns_
 
Pulse modulation
Pulse modulationPulse modulation
Pulse modulationavocado1111
 
Envelope coding in the cochlear nucleus: a data mining approach
Envelope coding in the cochlear nucleus: a data mining approachEnvelope coding in the cochlear nucleus: a data mining approach
Envelope coding in the cochlear nucleus: a data mining approachAlbanLevy
 
Ecet 345 Massive Success / snaptutorial.com
Ecet 345 Massive Success / snaptutorial.comEcet 345 Massive Success / snaptutorial.com
Ecet 345 Massive Success / snaptutorial.comHarrisGeorgx
 
Ecet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.comEcet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.comStephenson34
 
Ecet 345 Success Begins / snaptutorial.com
Ecet 345  Success Begins / snaptutorial.comEcet 345  Success Begins / snaptutorial.com
Ecet 345 Success Begins / snaptutorial.comWilliamsTaylorzl
 
Signal, Sampling and signal quantization
Signal, Sampling and signal quantizationSignal, Sampling and signal quantization
Signal, Sampling and signal quantizationSamS270368
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingAmr E. Mohamed
 
Lecture Notes: EEEC6440315 Communication Systems - Inter Symbol Interference...
Lecture Notes:  EEEC6440315 Communication Systems - Inter Symbol Interference...Lecture Notes:  EEEC6440315 Communication Systems - Inter Symbol Interference...
Lecture Notes: EEEC6440315 Communication Systems - Inter Symbol Interference...AIMST University
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing ssuser2797e4
 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNALkaran sati
 
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
 
The analog to digital conversion process
The analog to digital conversion processThe analog to digital conversion process
The analog to digital conversion processDJNila
 

Similar to sampling-alising.pdf (20)

Oscilloscope Lab
Oscilloscope LabOscilloscope Lab
Oscilloscope Lab
 
Pulse modulation
Pulse modulationPulse modulation
Pulse modulation
 
Speech Signal Processing
Speech Signal ProcessingSpeech Signal Processing
Speech Signal Processing
 
multiscale_tutorial.pdf
multiscale_tutorial.pdfmultiscale_tutorial.pdf
multiscale_tutorial.pdf
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Envelope coding in the cochlear nucleus: a data mining approach
Envelope coding in the cochlear nucleus: a data mining approachEnvelope coding in the cochlear nucleus: a data mining approach
Envelope coding in the cochlear nucleus: a data mining approach
 
Ecet 345 Massive Success / snaptutorial.com
Ecet 345 Massive Success / snaptutorial.comEcet 345 Massive Success / snaptutorial.com
Ecet 345 Massive Success / snaptutorial.com
 
Ecet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.comEcet 345 Enthusiastic Study / snaptutorial.com
Ecet 345 Enthusiastic Study / snaptutorial.com
 
Ecet 345 Success Begins / snaptutorial.com
Ecet 345  Success Begins / snaptutorial.comEcet 345  Success Begins / snaptutorial.com
Ecet 345 Success Begins / snaptutorial.com
 
Signal, Sampling and signal quantization
Signal, Sampling and signal quantizationSignal, Sampling and signal quantization
Signal, Sampling and signal quantization
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
 
Lecture Notes: EEEC6440315 Communication Systems - Inter Symbol Interference...
Lecture Notes:  EEEC6440315 Communication Systems - Inter Symbol Interference...Lecture Notes:  EEEC6440315 Communication Systems - Inter Symbol Interference...
Lecture Notes: EEEC6440315 Communication Systems - Inter Symbol Interference...
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
 
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
 
Sampling.pptx
Sampling.pptxSampling.pptx
Sampling.pptx
 
EC6651 COMMUNICATION ENGINEERING UNIT 2
EC6651 COMMUNICATION ENGINEERING UNIT 2EC6651 COMMUNICATION ENGINEERING UNIT 2
EC6651 COMMUNICATION ENGINEERING UNIT 2
 
Dc4 t1
Dc4 t1Dc4 t1
Dc4 t1
 
The analog to digital conversion process
The analog to digital conversion processThe analog to digital conversion process
The analog to digital conversion process
 

Recently uploaded

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 

sampling-alising.pdf

  • 1. BME 310 Biomedical Computing - J.Schesser 152 Sampling and Aliasing Lecture #6 Chapter 4
  • 2. BME 310 Biomedical Computing - J.Schesser 153 What Is this Course All About ? • To Gain an Appreciation of the Various Types of Signals and Systems • To Analyze The Various Types of Systems • To Learn the Skills and Tools needed to Perform These Analyses. • To Understand How Computers Process Signals and Systems
  • 3. BME 310 Biomedical Computing - J.Schesser 154 Discrete-time Signals and Computers • Up to now we have been studying continuous-time signals (also called analog signals) such as • However, digital computers and computer programs can not process analog signals. • Instead they store discrete-time versions of analog signals • This is because digital computers can only store discrete numbers. – There are computers called analog computers which do process continuous-time signals • Since the computer only stores numbers, how does one know what continuous-time signal it represents? ( ) cos( ) o x t A t     ) ( ] [ s nT x n x 
  • 4. BME 310 Biomedical Computing - J.Schesser 155 Sampling • We can obtain a discrete-time signal by sampling a continuous-time signal at equally spaced time instants, tn = nTs x[n] = x(nTs) -∞ < n < ∞ • The individual values x[n] are called the samples of the continuous time signal, x(t). • The fixed time interval between samples, Ts, is also expressed in terms of a sampling rate fs (in samples per second) such that: fs = 1/ Ts samples/sec.
  • 5. BME 310 Biomedical Computing - J.Schesser 156 Continuous-to-Discrete Conversion • By using a Continuous-to-Discrete (C-to-D) converter, we can take continuous-time signals and form a discrete-time signal. • There are devices called Analog-to-Digital converters (A-to-D) • The books chooses to distinguish an C-to-D converter from an A-to-D converter by defining a C-to-D as an ideal device while A-to-D converters are practical devices where real world problems are evident. – Problems in sampling the amplitudes accurately – Problems in sampling at the proper times
  • 6. BME 310 Biomedical Computing - J.Schesser 157 Discrete-Time Signals • A discrete-time signal is a sequence of numbers and carry no information about the time-sequence. • Looking at the following diagram, which (gray or solid) waveform are these (red) samples associated with? -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 2 4 6 8 10 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 2 4 6 8 10 -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1 0 2 4 6 8 10
  • 7. BME 310 Biomedical Computing - J.Schesser 158 Discrete-Time Sinusoidal Signals • Since a Fourier series can be written for any continuous-time signal, let’s concentrate on sinusoids • We define a normalized frequency for the discrete sinusoidal signal. • is the normalized or discrete-time frequency • Since we can have different signals with the same , then there can be an infinite number of continuous-time signal which yield the same discrete-time sinusoid! [ ] ( ) cos( ) ˆ cos( ) ˆ s s s s x n x nT A nT A n T f               ̂ ̂
  • 8. BME 310 Biomedical Computing - J.Schesser 159 Two Problems with Sampling • Problem 1: How many samples are enough to have to represent a continuous time signal? • In this figure, we have a continuous-time signal sampled every .4 seconds (red samples) and every 1 second (black samples). -1 0 1 0 2 4 6 8 10
  • 9. BME 310 Biomedical Computing - J.Schesser 160 Discrete-Time Sinusoidal Signals • Problem 2: Can a set of samples be represent more that one continuous-time signal    4 . ) 1 )( 2 . 0 ( 2 ˆ   -1 0 1 0 2 4 6 8 10 • The discrete-time sinusoid shown in the figure has which can be obtain from, for example, either a 1 second sampled continuous-time sinusoid with f = 0.2 Hz or 1.2 Hz. • In the first case, where f = 0.2 Hz, we have:
  • 10. BME 310 Biomedical Computing - J.Schesser 161 Discrete-Time Sinusoidal Signals    4 . ) 1 )( 2 . 0 ( 2 ˆ   ˆ [ ] cos( ) ˆ 2 (1.2)(1) 2.4 2.4 2 .4 [ ] cos(2.4 ) cos(2 0.4 ) cos(0.4 ) x n A n x n A n A n n A n                              -1 0 1 0 2 4 6 8 10 • In the first case, where f = 0.2 Hz, we have: • Since a sinusoid is periodic in 2, then for the case where f=1.2 Hz
  • 11. BME 310 Biomedical Computing - J.Schesser 162 Aliasing • This example illustrates that two sampled sinusoids can produce the same discrete-time signal. 1. cos [2π(0.2) t] 2. cos [2π(1.2) t] -1 0 1 0 2 4 6 8 10 • When this occurs we say that that these signals are aliases of each other.
  • 12. BME 310 Biomedical Computing - J.Schesser 163 Aliasing • There are more alias signals for this example: 1. x(t) = cos (2π(0.2) t) => x[n] = cos (2π(0.2) 1n) = cos (0.4π n) 2. x(t) = cos (2π(1.2) t) => x[n] = cos (2π(1.2) 1n) = cos (2.4π n) = cos (0.4 π n + 2 π n) = cos (0.4π n) 3. x(t) = cos (2π(.8) t) => x[n] = cos (2π(.8) 1n) = cos (1.6π n) = cos (2 π n - 0.4 π n) = cos (0.4π n) • In summary, (for l = positive or negative integer):   0,1,2,3, for 2 4 . 0 ˆ ), cos( ) - cos(2 Since 0,1,2,3, for 2 4 . 0 ˆ         l l l l l l          -1 0 1 0 2 4 6 8 10 ̂o, ̂o  2l, 2l ̂o where ̂o is called the principal alias
  • 13. BME 310 Biomedical Computing - J.Schesser 164 Aliasing • Let’s look at signals of the form: cos(ωlt) Hz 8 1 2 1 8 0 2 0 2 . 0 2 4 . 0 2 2 ) ˆ 2 ( c ....rad/se , 6 . 3 , 4 . 2 , 6 . 1 , 4 . 0 4 . 0 2 ˆ 2 Then, . 1 and 4 . 0 is ˆ example, our In 2 ) ˆ 2 ( and ˆ 2 or 2 ) ˆ 2 ( and ˆ 2 ˆ have can then we , ) 2 cos( ) cos( ) cos( since 2 ) 2 ˆ ( and ) 2 ˆ ( ˆ Therefore, integer. an is and alias, principal the is ˆ , 2 ˆ ˆ and ˆ ˆ where ) ˆ cos( ) cos( , ..... . , . . , . l l f l f l l f f l f l f l f l f l f f l f l l f T n t s o l o l s o s o l o l s o l o l s o l s o s l l o o l s l s l l l sampled l                                                                                    
  • 14. BME 310 Biomedical Computing - J.Schesser 165 Shannon’s Sampling Theorem • How frequently do we need to sample? • The solution: Shannon’s Sampling Theorem: A continuous-time signal x(t) with frequencies no higher than fmax can be reconstructed exactly from its samples x[n] = x(nTs), if the samples are taken a rate fs = 1 / Ts that is greater than 2 fmax. • Note that the minimum sampling rate, 2 fmax , is called the Nyquist rate.
  • 15. BME 310 Biomedical Computing - J.Schesser 166 Spectrum of the Discrete-time Signal 0.4 1.6 2.4 -0.4 -1.6 -2.4 0.5 • There are an infinite number of frequency components of discrete-time signal • They consists of the principal along with the other aliases (an infinite number of them).
  • 16. BME 310 Biomedical Computing - J.Schesser 167 Nyquist Rate • Shannon’s theorem tell us that if we have at least 2 samples per period of a sinusoid, we have enough information to reconstruct the sinusoid. • What happens if we sample at a rate which is less than the Nyquist Rate? – Aliasing will occur!!!!
  • 17. BME 310 Biomedical Computing - J.Schesser 168 Ideal Reconstruction • The sampling theorem suggests that a process exists for reconstructing a continuous-time signal from its samples. • If we know the sampling rate and know its spectrum then we can reconstruct the continuous-time signal by scaling the principal alias of the discrete-time signal to the frequency of the continuous signal. • The normalized frequency will always be in the range between 0 ~ π and be the principal alias if the sampling rate is greater than the Nyquist rate.
  • 18. BME 310 Biomedical Computing - J.Schesser 169 Ideal Reconstruction Continued • If continuous-time signal has a frequency of ω, then the discrete-time signal will have a principal alias of • So we can use this equation to determine the frequency of the continuous-time signal from the principal alias: • Note that the normalized frequency must be less than  if the Nyquist rate is used • And the reconstructed continuous-time frequency must be s s f T      ˆ s s T f    ˆ ˆ               ) 2 ( 2 2 2 ˆ MAX s MAX s MAX s MAX s MAX f f f f f T f T max ˆ ˆ 2 2 2 2 s s s s f f f f f f f              
  • 19. BME 310 Biomedical Computing - J.Schesser 170 Oversampling • When we sample at a rate which is greater than the Nyquist rate, we say we are oversampling. • If we are sampling a 100 Hz signal, the Nyquist rate is 200 samples/second => x(t)=cos(2π(100)t+π/3) • If we sample at 2.5 times the Nyquist rate, then fs = 500 samples/sec • This will yield a normalized frequency at 2π(100/500) = 0.4π -1 0 1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
  • 20. BME 310 Biomedical Computing - J.Schesser 171 Oversampling • Since we are greater than the Nyquist rate, the normalized frequency will be < π which means it is the principal alias. • And we get back the original continuous frequency when we do the reconstruction • f = 0.4πfs / 2π = 0.4π500 / 2π = 0.2 (500) = 100 Hz 0.4π 1.6π 2.4π -0.4π -1.6π -2.4π 0.5
  • 21. BME 310 Biomedical Computing - J.Schesser 172 Undersampling and Aliasing • When we sample at a rate which is less than the Nyquist rate, we say we are undersampling and aliasing will yield misleading results. • If we are sampling a 100 Hz signal, the Nyquist rate is 200 samples/second => x(t)=cos(2π(100)t+π/3) • If we sample at .4 times the Nyquist rate, then fs = 80 s/sec • This will yield a normalized frequency at 2π(100/80) = 2.5π -1 0 1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
  • 22. BME 310 Biomedical Computing - J.Schesser 173 Undersampling • Since it is > π, 2.5π is NOT the principal alias • The principle alias is 2.5π - 2π = 0.5π • Using 0.5π as the principal alias and performing a reconstruction we then have: f = 0.5π fs / 2π = 0.5π 80 / 2π = 0.5 (40) = 20 Hz and we have reconstructed the wrong signal!!! 0.5π 1.5π 2.5π -0.5π -1.5π -2.5π 0.5
  • 23. BME 310 Biomedical Computing - J.Schesser 174 The Alias Problem due to Undersampling -1 0 1 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08
  • 24. BME 310 Biomedical Computing - J.Schesser 175 Aliasing and Folding • Your book treats undersampling in terms of aliasing and folding • During reconstruction, both of these phenomenon will produce erroneous results. • The difference between aliasing and folding has to do with which part of the spectrum created the alias.
  • 25. BME 310 Biomedical Computing - J.Schesser 176 Discrete-to-Continuous Conversion • An D-to-C converter uses the samples to reconstruct the continuous-time signal by interpolation. • There are various interpolation algorithms which may be used: – Zero-Order Hold – Linear – Cubic Spline
  • 26. BME 310 Biomedical Computing - J.Schesser 177 Interpolation • Oversampling always improves the reconstruction • Best reconstruction is Low Pass Filter or what the text calls: Ideal Bandlimited Interpolation -1 0 1 0 2 4 6 8 10 -1 0 1 0 2 4 6 8 10 Zero-Order Hold Linear
  • 27. BME 310 Biomedical Computing - J.Schesser 178 Non-sinusoidal Signals • Since a Fourier series can be written for any continuous-time signal, the sampling and reconstruction processes for any continuous- time signal is the same – Shannon’s Sampling theorem – Nyquist Rate fs ≥ 2fmax to eliminate aliasing – Oversampling to improve interpolation – Ideal (low pass filter) Bandlimited interpolation
  • 28. BME 310 Biomedical Computing - J.Schesser 179 Homework • Exercises: – 4.1 – 4.5 • Problems: – 4.1, 4.2, 4.3, – 4.4, Use Matlab to plot the signal in part a. – 4.5, 4.8, 4.11, 4.19