Академический Документы
Профессиональный Документы
Культура Документы
2 f H 2 f L
1 s
f 2 f or 1 f s 2 f H
f
s
L
f
s
FS representation of spectrum
x (t )
n
x(nTs ) (t nTs ) X ( f )
n
x(nTs )e j 2nTs f
W
1 f /2
Ts X ( f )exp j 2 ft df X ( f )exp j 2 ft df
s
W fs f /2s
1 f /2
exp j 2 f t nTs df
s
x(nTs )
n fs f /2
s
x(nTs )sinc f s t n
n
Sampling theorem
k 0
1 N 1
X [k ] x[n]exp jk 0 n
N n 0
Linearity
Time and frequency shift
Scaling of sample number
Convolution and multiplication
Persevals theorem
Duality
Symmetry
More on scaling property
For scaling factor 1/L where L is an integer, samples are
spaced by L times more (as if the signal is stretched
along time axis by L times) with missing samples in-
between padded (interpolated) with zeroes process
called expansion / upsampling / interpolation.
For integral scaling factor M, only every M-th samples
are taken while others are dropped (as if the signal is
compressed along time axis by M times) process
called downsampling / decimation.
Scaling factor of the form M/L fractional interpolation
(M > L) or fractional decimation (M < L) achieved by
interpolation followed by decimation.
Decimation and interpolation can be commuted only
when M and L are relatively prime.
Decimation
1 M 1
2k
YD ()
M
X
M
x[n] M yD[n] k 0
M 1
1
yD [n] x[Mn] OR YD ( z )
M
X
k 0
z 1M
WM
k
3s/2
3
s/2
m +
+
+s/2
m +3s/2
+3
4
2s 2
s 0 +2
+s +4s
+2
Sampling rateSpectrum
unchanged YD() of the decimated signal
Time scaling by a factor M
Here we take M = 3 1 1
1 2 2 ( M 1)
fM X X X M
s/M M M
1/M M M
3
Mms 0 + +3
+M+2 +5
2 +
+2s
m
+4 s +3
+6s
Decimation (contd.)
3
m0/2
3 0/2
+0/2
+ +3
+0/2
+3 m
40
2 20
0 +2
+0 +40
+2
Interpolation
x[k ] n kL
y I [ n]
x[n] L yI[n]
0 otherwise
YI () X L OR
YI ( z ) X z L
3s/2
3
s/2
m +
+
+s/2
m +3s/2
+3
4
2s 2
s 0 +2
+s +4s
+2
Sample rate increased by Spectrum
Spectrum YYDD()
() of
ofthe
thediscrete-time
discrete-timesignal
signal
L times (L = 3)
3/L
3 /L
+/L
+ +3/L
+3
4/L
4 2/L
2 0
0 +2/L
+2 +4/L
+4
Interpolation filter
Interpolation generates images of the signal spectrum as
seen before.
Interpolation filter LP digital filter with cutoff frequency
/L that follows the interpolator to suppress all images.
Check that the output of interpolation filter is what we
would have got by sampling the original time-continuous
signal at a rate L times more.
So, interpolation filter essentially recovers actual signal
samples at L 1 in-between points that are zero-padded
(no wonder, it is quite possible).
In short.
Decimation / interpolation used for changing sampling
rate
Generate a new digital signal directly from the input
digital signal without the need for intermediate
reconstruction of the original continuous-time signal.
That is, change the input set of samples to a new set
of samples that would have been obtained if the
original continuous-time signal was sampled at the
modified sampling rate.
Decimation reduces sampling rate.
Interpolation increases sampling rate.
Decimator and interpolators are linear but time-varying
(LTV) systems.
In short.
Interpolation is increasing the sampling rate by an
integral factor L.
This may be done by inserting extra L 1 samples in
between every pair of input samples.
But, values of these sample (in the original
continuous-time signal) are not available in the input
digital signal.
So, in the first place we take these sample values as
zero.
Following this, an interpolation filter retrieves these
sample values.
Since here sampling rate is increased there is no
question of aliasing.
Decimation and interpolation
Interpolation results in compression of spectrum by L
times without any overlapping (no aliasing).
Decimation results in stretching of spectrum by M times
and may result in aliasing.
Fractional decimation scheme:
Interpolation Filter
3 / 2 5 / 6 + / 2 +7 / 6 +5 / 2 +19 / 6
2 +2
+3 / 2 +7 / 2 +11 / 2
+2 +4
Discrete Fourier transform (DFT)
DFT is used in approximating the spectrum for a finite
length sequence.
DTFT is good for theoretical spectrum analysis of digital
signal but not good for computer-aided analysis.
DFT provides practical approach to numerical
computation of DTFT for a finite length sequence.
Also, we may split an input signal in sets of N samples
and do analysis for each set (segment or frame)
separately.
N 1
X () x[n] exp jn x[n] exp jn
n 0
DFT continued
Approximation to X() is obtained by taking frequency
samples of X() at N equally spaced frequencies k =
2k / N, 0 k N 1.
Check that the DFT expression is same as the DTFS
expression.
That means, we do analysis in the DTFS manner.
That is, for a given set of N samples we calculate the
DTFT as if the signal is periodic with these N samples.
Therefore, one-dimensional DFT and inverse DFT
expressions are same as DTFS expressions given
before.
Sampling in frequency
Discuss frequency sampling in the light of what we have
studied in case of time sampling at Nyquist rate.
DTFT
N-length sequence Freq. continuous Spectrum
from to +
Periodic repetition DFT
Freq. sampling
N 1
Y [k ] exp jk n
1
y[n] 0
N k 0
N 1
1
x[l ] exp jk l
0 exp jk 0 n
N k 0
1 N 1
x[l ] exp jk 0 (n l ) x[n mN ]
N k 0 m
Signal recovery from DFT (contd.)
xn X k , hn H k
Circular convolution
Y k X k H k yn hn N xn
Circular convolution
For M N, N-point circular convolution is different from
M-point circular convolution.
Circular convolution and linear convolution of two finite
length N-point sequences are not the same.
Circular convolution = one period of the linear
convolution of the periodic extensions of the two input
signals.
Circular convolution = linear convolution + time-aliasing.
yn xn* hn
xn N hn yn kN , n 0,1,....., N 1
System output from circular conv.
The input to a system is x[n] and the impulse response
of the system is h[n].
Then, the system output is y[n].
System output can be calculated by linear convolution of
x[n] and h[n] or by taking inverse DTFT of X()H().
Second option (freq. domain approach) better for large
length x[n] and h[n].
However, in computer we can only compute DFT / IDFT
and not DTFT / IDTFT.
But, IDFT of X[k]H[k] Gives circular convolution of x[n]
and h[n].
System output (contd.)
As said, circular convolution is periodic repetition of y[n]
with period N + time aliasing; where N is the number of
DFT points taken in computing DFT of x[n] and h[n].
That means y[n] can be obtained from the circular
convolution result if there is no time aliasing.
Length of x[n] = N1, length of h[n] = N2
Then, length of y[n] = N1 + N2 1
So, to avoid time aliasing, N N1 + N2 1.
2D DFT
2D DFT: X [k , l ]
1 1 M 1 N 1
M N m 0 n 0 M
x[m, n]exp j 2 km ln
N
2D IDFT: x[m, n] X [k , l ]exp j 2 km ln
M 1 N 1
k 0 l 0 M N