Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
& Systems
Sampling
Topics
1. Sampling
and
Aliasing
2. Reconstruction
from
Samples
1.
Sampling
and
Aliasing
Questions:
1. What
is
sampling?
2. What
is
the
relationship
between
the
Fourier
transforms
of
a
CT
signal
and
its
sampled
DT
version?
3. What
is
aliasing?
4. What
is
Nyquist
frequency?
5. How
can
aliasing
be
prevented?
Sampling
is
the
process
of
obtaining
a
DT
signal
!" []
from
a
CT
signal
!" ():
!" [] = !" (),
! ,
where
is
called
the
sampling
interval.
In
order
to
find
the
relationship
between
the
Fourier
transforms
of
!" []
and
!" ()
we
employ
an
intermediate
CT
signal
defined
as
! () = !" ()! ()
where
! ()
is
a
sequence
of
impulses
which
are
separated
by
:
!
! () =
( )
!!!!
Sampling
In
order
to
relate
the
Fourier
transforms
of
!" ()
and
! (),
we
first
compute
the
Fourier
transform
of
().
Since
()
is
periodic,
it
has
a
Fourier
series
representation:
!
! !"!! !
! () =
!!!!
where
2
! =
1
! =
Thus,
!!!
1
! () !!"!! ! =
1
! () =
!/!
!!!!
!!!!/!
1
( ) !!"!! ! =
!"!! !
(*)
!!!!
Now,
using
the
above
decomposition
(*)
of
! ()
into
complex
exponentials,
we
can
obtain
its
Fourier
transform
as
follows:
!"!! !
2
2( ! ) ! ()
(
!!!!
2
)
Thus,
the
Fourier
transform
of
a
sequence
of
impulses
in
time,
is
also
a
sequence
of
impulses
in
frequency.
As
the
separation
between
impulses
in
time
increases,
the
separation
between
impulses
in
frequency
decreases,
so
that
their
product
always
remains
2.
Now,
we
are
ready
to
relate
the
Fourier
transforms
of
!" ()
and
! ().
Using
the
modulation
property
1
! () = !" ()! () ! () =
() ! ()
2 !"
thus
!
!
1
2
1
2
! () = !" ()
( ) =
!" ( )
!!!!
!!!!
Next,
we
relate
the
Fourier
transforms
of
! ()
and
!" [].
To
this
effect,
we
first
express
!" ()
in
terms
of
!" ():
!
!" () =
!" []
!!!!
!!!!
!" () !!!!
!!!!
Then
we
express
! ()
in
terms
of
!" ():
Sampling
! () !!"# =
! () =
!!!!
!
!!"#
!"
!!!!
!!!!
=
!!!! !!!!
!
( ) !!"# =
!" ()
!!!!
!" () !!"#$
!!!!
!!!!
!" () = !
Thus,
finally,
!" () = !
1
=
!"
!!!!
2
1
!"
!!!!
!!
The
frequency
!
is
called
the
sampling
frequency
(or
sampling
rate)
! .
The
replicas
of
!" ()
will
overlap
if
the
maximum
frequency
!
of
!" ()
is
not
less
!
!
than
half
the
sampling
rate
!
.
The
frequency
!
is
called
the
foldover
frequency
! .
Any
frequency
of
!" ()
which
is
above
!
is
folded-over
to
a
frequency
which
is
below
! .
If
the
foldover
frequency
!
is
less
than
the
maximum
frequency
!
of
a
signal
then
we
say
that
the
signal
is
undersampled
(this
will
result
in
aliasing);
if
!
is
more
than
! ,
then
we
say
that
the
signal
is
oversampled;
and
if
!
equals
!
then
we
say
that
the
signal
is
critically
sampled.
Sampling
The
overlapping
of
replicas
is
called
aliasing.
In
order
to
prevent
aliasing,
the
sampling
rate
!
should
be
at
least
twice
as
large
as
the
maximum
frequency
!
of
the
CT
signal.
The
frequency
2!
is
called
the
Nyquist
frequency
(or
the
Nyquist
rate)
! .
Example
1.1:
Let
!" () = cos 3
Find
!" ()
for
= 1/4.
Will
there
be
aliasing
as
a
results
of
this
sampling?
The
signal
!" ()
is
bandlimited
with
maximum
frequency
3.
Thus,
Signal
bandwidth:
! = 3
Nyquist
frequency: ! = 6
Sampling
interval
is
1/4.
Thus,
!!
Sampling
rate:
! = !/! = 8
We
have
Due
to
scaling:
1
!"
= 4!" 4 = 4 4 3 + 4 4 + 3
!!
!
+ +
!!
!
!" () =
!!!!
1
2
!"
=
!!!!
!!
!
+ 2 + +
!!
!
+ 2
The
above
Fourier
transforms
are
depicted
in
the
following
figure:s
Sampling
Example
1.2:
Let
We have
Example
1.4:
Suppose
!" ()
is
bandlimited
and
has
Nyquist
rate
! .
What
would
be
the
Nyquist
rates
of
the
following
signals?
Sampling
! () = !" () + !" ( 1)
! () = !" ()
! () = !" ! ()
! () = !" () cos !
The
Fourier
transforms
and
Nyquist
rates
are
calculated
as
follows:
! () = !" () 1 + !!"
! () = !" ()
! () = !" () !" ()
! () = !" () ( ! ) + ( ! )
!,! = !
!,! = !
!,! = 2!
!,! = ! + 2!
In
order
to
prevent
aliasing
during
sampling,
the
CT
signal
is
low-pass
filtered
to
limit
its
bandwidth
to
the
foldover
frequency.
Example
1.5:
Let
!" () = cos 2 +cos 5
and
= 1/4.
What
should
be
the
cut-off
frequency
!
of
the
low-pass
filter
to
prevent
aliasing
during
sampling?
The
cut-off
frequency
is
calculated
as
! = ! = = 4
Thus,
any
frequencies
above
4
will
be
eliminated
by
this
low-pass
filter
and
the
low-pass
filtered
signal
will
become:
!
!"
() = cos 2
2.
Reconstruction
from
Samples
Questions:
1. What
is
Nyquist
sampling
theorem?
2. How
can
we
reconstruct
a
CT
signal
from
its
samples?
3. How
do
we
prevent
aliasing
during
sampling?
Let
!" ()
be
a
band-limited
signal,
i.e,
!" () = 0
for
!
Sampling
and
let
!" []
represent
its
samples
obtained
with
sampling
interval
.
The
Nyquist
theorem
states
that,
!" ()
can
be
uniquely
reconstructed
from
its
samples
!" []
if
! <
or,
equivalently
2
> 2!
that
is,
the
sampling
frequency
should
be
at
least
twice
as
large
as
the
maximum
frequency
of
the
CT
signal.
Recall
that
the
frequency
2!
is
called
the
Nyquist
frequency
(or
the
Nyquist
rate).
If
the
sampling
frequency
!
is
less
than
the
Nyquist
frequency
2! ,
then
there
will
be
aliasing
and
perfect
reconstruction
of
!" ()
from
its
samples
!" []
will
not
be
possible.
In
order
to
reconstruct
a
CT
signal
!" ()
from
its
samples,
we
apply
a
low-pass
filter
!" ()
to
the
DT
signal
with
cut-off
frequency
equal
to
the
foldover
frequency
! = ! =
Thus,
<
!" () =
0 elsewhere
! =
!!
Notice
that
the
low-pass
filter
used
for
reconstruction
from
the
DT
signal
is
the
same
as
the
low-pass
filter
applied
to
the
CT
signal
to
prevent
aliasing.
Sampling
The
impulse
response
of
the
filter
!" ()
can
be
calculated
as
1
!" () = sinc
The
following
figure
shows
where
the
low-pass
filters
are
used
in
DT
processing
of
CT
signals.