Escolar Documentos
Profissional Documentos
Cultura Documentos
Instructor: Zhang
Can we find X ( f )
x(t )e
j 2ft
dt
j 2kn / N
=> X k xn e
k 1, 2,..., N
n 0
k
T
1
T
limited frequency band (from to in Fourier transform to):
0 2N / T
N 1
1
4. xn
---- periodic function (period N)
X k e j 2kn / N
N k 0
limited frequency resolution 2
Page 10-1
( k 2
5. X k
Xk
Instructor: Zhang
k
line spectrum)
T
N 1
xne j 2kn / N
n0
(t mTs ) :
y s (t ) f s ( f nf s )
n
( fs
1
)
Ts
Fourier
Transform
Pair
in DFT Ts t T / N
(2) Rectangular Pulse (window)
sin x
sin cX
t t0
(
) T sin c(Tf )e j 2t0 f
x
T
sin c(Tf )
width
of
the
window
when t0 = 0
Center of the
window
sin Tf
Tf
t
( ) T sin c(Tf )
T
(3) x1 (t ) * x2 (t ) X1 ( f ) X 2 ( f )
(4) x1 (t ) x2 (t ) X1 ( f ) * X 2 ( f )
Page 10-2
Instructor: Zhang
x(t ) e
|t |
2
1 (2f ) 2
(1) If we sample x(t) in
(,)
X(f )
as in DFT
sampled signal xs (t ) ys (t )e
|t |
|t |
) Ys ( f ) * X ( f )
X ( f nf s ) 2f s
1 (2 ( f nf
)) 2
window ( )
t
xsw (t ) xs (t ) ( )
T
X sw ( f ) (2f s
{1 2 ( f nf
) 2 }1 ) * (T sin c(Tf ))
Page 10-3
Instructor: Zhang
for e
|t |
for e
|t |
Page 10-4
Instructor: Zhang
Page 10-5
Instructor: Zhang
5. DFT Errors
(1) Aliasing
X s ( f ) fs
X( f
nf s )
Caused by sampling
Overlapping of X(f) and its translates: aliasing (sampling effect)
(2) Leakage Effect
t
limited window size T ( ( ) )
T
t
X s ( f ) X s ( f ) * F (( ))
T
t
( f ) F (( ))
T
X s ( f ) : contribution of X s ( f f ) to X s ( f ) : determined by
weight (f )
frequency energy leaks from one frequency to another!
(3) Picket Fence Effect:
As an estimation of X(f), does X s ( f ) have picket fence effect? No!
DFT: discrete frequencies (not blocked by the fence).
6. Minimization of DFT Error Effects.
Page 10-6
Instructor: Zhang
X ( k ) x ( n) e
j 2kn / N
n 0
N 1
x(n) e j 2 / N
nk
n 0
Denote WN e j 2 / N , then
X (k )
N 1
x(n)WN nk
n0
WN m :
0
j 2 / N 0
Properties of
(1) WN (e
(2) WN
N m
WN
WN N e j 2 1
) e0 1,
WN N m (e j 2 / N ) N m
(e j 2 / N ) N (e j 2 / N ) m
1 (e j 2 / N ) m WN m
(3) WN
N /2
e j 2 /( N / 2) / N e j 1
WN N / 4 e j 2 /( N / 4) / N e j / 2 j
WN
3N / 4
e j 2 /(3 N / 4) / N e j 3 / 2 j
2. Examples
Example 10-3: Two-Point DFT
1
x(0), x(1): X (k )
x(n)W2 nk
k 0,1
n0
X (0)
x(n)W2 n0
n0
1
X (1) x(n)W2
n 0
n1
n0
1
x(n)W2
n 0
x(0)W2 x(1)W2
0
x(0) x(1)W2
(1 / 2 ) 2
x(0) x(1)(1)
x(0) x(1)
Page 10-7
Instructor: Zhang
X (k )
X (0)
x(n)W4 nk
n0
3
x(n)W4
n0
n0
3
k 0,1,2,3,
n0
n 0
X (2) x(n)W4
2n
n 0
X (3) x(n)W4
n 0
3n
Page 10-8
Instructor: Zhang
Two-point DFT
N 2m
Page 10-9
Instructor: Zhang
g
(
0
),
g
(
1
),
,
g
(
1)
2
(( x (1), x (3),, x ( N 1))
N 1
X (k ) x(n)W N
N
po int s
2
( g ( r ) x ( 2r ))
enen
N
po int s
2
( h( r ) x ( 2r 1))
odd
kn
n 0
N / 2 1
g (r )W
r 0
N / 2 1
k (2r )
N
g (r )WN
2 kr
h(r )W
r 0
2 kr
r 0
WN
N / 2 1
WN
k ( 2 r 1)
(k 0,1,..., N 1)
N / 2 1
h(r )W
r 0
2 kr
N
(e j 2 . / N ) 2 kr (e j 2 /(. N / 2) ) kr W N
kr
X (k )
N / 2 1
g (r )W
r 0
kr
N /2
WN
N / 2 1
h(r )W
r 0
kr
N /2
G (k ) W N H (k )
( G(k): N/2 point DFT output (even indexed), H(k) : N/2 point DFT
output (odd indexed))
k
X ( k ) G ( k ) WN k H ( k )
G (k )
N / 2 1
r 0
H (k )
g ( r )WN / 2 kr
N / 2 1
r 0
h( r )WN / 2
kr
k 0,1,..., N 1
N / 2 1
r 0
N / 2 1
r 0
x ( 2r )WN / 2 kr
x ( 2r 1)WN / 2 kr
Page 10-10
Future Decimation
g(0), g(1), , g(N/2-1)
h(0), h(1), , h(N/2-1)
N
2)
2
N
ge(0), ge(1),...ge( 1)
4
N
g (1), g (3), , g ( 1)
2
N
go(0), go(1),...go( 1)
4
Instructor: Zhang
G(k)
H(k)
G (k )
N / 2 1
g (0), g (2), , g (
g (r )W
r 0
N / 4 1
ge(m)W
km
( N / 4)
m 0
W( N / 2 )
kr
( N / 2)
N / 4 1
go(m)W
km
( N / 4)
m 0
GE(k ) W( N / 2 ) Go(k )
k
Page 10-11
Instructor: Zhang
WN / 2 k WN 2k ?
WN / 2 k ( e j 2 /( N / 2 ) ) k
( e j 2 2 / N ) k ( e j 2 / N ) 2 k
WN 2 k
Similarly,
H (k ) HE (k ) WN 2k Ho(k )
even indexed
h (N/4 point)
odd indexed
h (N/4 point)
For 8 point
g ( 0)
x ( 0)
ge(0)
g (1)
x ( 2)
go(0)
g ( 2)
x ( 4)
ge(1)
g (3)
x ( 6)
go(1)
h ( 0)
x (1)
he(0)
h(1)
x (3)
ho(0)
h ( 2)
x (5)
he(1)
h(3)
x (7)
ho(1)
Page 10-12
Instructor: Zhang
X (k ) x(n)WN
nk
n 0
N / 2 1
x(n)WN
n 0
nk
N 1
x(n)W
n N / 2
nk
N
Page 10-13
Instructor: Zhang
X (k )
N / 2 1
n 0
N / 2 1
n 0
x ( n )WN
x (n )WN nk
nk
N / 2 1
m 0
N / 2 1
m 0
x ( N / 2 m)WN ( N / 2 m ) k
N
x ( N / 2 m)WN mkWN 2 k
WN 2 1 WN 2 k ( 1) k
X (k )
N / 2 1
n 0
N / 2 1
n 0
x ( n )WN nk
N / 2 1
m 0
( 1) k x ( N / 2 m)WN mk
[ x ( n ) ( 1) k x ( N / 2 n )]WN nk
k : even (k 2r ) X (k ) X (2r )
N / 2 1
[ x(n) x( N / 2 n)]W
n 0
WN
N/2 point DFT
2 rn
(e
j 2 / N
X ( k ) X ( 2r )
) 2 rn (e j 2 /( N / 2 ) ) rn WN / 2
N / 2 1
x(n) x( N / 2 n)]W
[
n 0
Y (r)
N / 2 1
n 0
2 rn
N
rn
rn
N /2
y (n)
y (n )WN / 2 rn
Z (r )
k : odd k 2r 1
X (k ) X (2r 1)
N / 2 1
[ x(n) x( N / 2 n)]W
n 0
N / 2 1
n) x( N / 2 n)]W W
[x(
n 0
z (n)W
2 rn
N
N / 2 1
z (n)W
n 0
2 rn
N
z (n)
N / 2 1
n 0
n ( 2 r 1)
N
rn
N /2
Page 10-14
Z (r )
Instructor: Zhang
N / 2 1
z(n)W
n 0
rn
N /2
N
po int
2
DFT
of
z (0), , z (
N
1)
2
Y (k )
N / 2 1
n 0
N / 4 1
n 0
y ( n )WN / 2 rn
[ y ( n ) ( 1) k y ( N / 4 n )]WN / 2 nk
Page 10-15
Instructor: Zhang
k : even k 2r
Y (k ) Y (2r )
N / 4 1
n 0
Y 1( r )
N / 4 1
n 0
[ y ( n ) y ( N / 4 n )]WN / 2 nk
y1( n )
y1( n )WN / 4 nk N / 4
po int
DFt
k : odd k 2r 1
Y ( k ) Y ( 2r 1)
N / 4 1
n 0
Y 2( r )
N / 4 1
n 0
[ y ( n ) x ( N / 4 n )]WN / 2 n WN / 2 2 rn
y 2( n )WN / 4 rn N / 4
y 2( n )
po int
DFT
Page 10-16
Instructor: Zhang
10-4 C Computation
N point DFT : 4N(N-1) real multiplications
4N(N-1) real additions
N point FFT : 2Nlog2N real multiplications
(N = 2m)
3Nlog2N real additions
Computation ration
5 12
0.18%
8 4095
x(n)
and
y (n)
X (k )
Y (k )
( n 0,..., N 1)
( k 0,..., N 1)
Instructor: Zhang
N 1
if N even
2
xe(n) : even about
N
if N odd
2
N 1
if N even
2
xo(n) : odd about
N
if N odd
2
N = 10, xe(n)
x ( 4) x (5)
x (3) x (6)
N 1
4.5 x ( 2) x (7)
2
x (1) x (8)
x (0) x (9)
N = 9, xe(n)
x ( 4) x (5)
x (3) x (6)
N
4.5 x ( 2) x (7)
2
x (1) x (8)
x (0) x (9)
(4) Any real sequence can be expressed in terms of its even and odd parts
according to
x(n ) xe (n ) xo ( n )
1
1
[ x (n ) x( N n )] [ x (n ) x ( N n )]
2
2
even
odd
Question 1: x(n) = 1/2[ ] +1/2 [ ] ?
Question 2: x(n) + x(N-n) even ?
x(n) - x(N-n) odd ?
Yes!
Page 10-18
Instructor: Zhang
Ax(n) By (n) AX (k ) BX (k )
3. Frequency Shift:
4. Duality :
why?
x(n)e j 2km / N X (k m)
N 1 x(n) X (k )
X (k )
DFT ( X (n ))
N 1
x(m)e j 2mk / N
m 0
N 1
X (n)e j 2nk / N
n 0
DFT of x(m)
Page 10-19
Instructor: Zhang
x( n ) x( N n )
1
N 1
X (k )e j 2k ( N n ) / N
k 0
e j 2k ( N n ) / N e j 2kN / N e j 2kn / N
1
x( n )
N
N 1
X (k )e j 2kn / N
k 0
1
DFT ( N X (n ))
N
1
N 1
n 0
5. Circular convolution
N 1
circular convolution
m0
6. Multiplication
x ( n) y ( n) N
N 1
X (m)Y (k m) N 1 X (k )Y (k )
m0
new sequence
z ( n) x(n) y (n)
7. Parsevals Theorem
N 1
| x ( n) |
n 0
N 1
| X (k ) |
k 0
xer (n) X er (k )
(the DFT of an even real sequence is even and real )
9. Transform of odd real functions:
xor (n) jX oi (k )
(the DFT of an odd real sequence is odd and imaginary )
10. z(n) = x(n) + jy(n)
z(n) Z(k) = X(k) + jY(k)
Page 10-20
Instructor: Zhang
Example 10-7
cos(n / 2) j sin( n / 2)
n 0,1,2,3
X (0) 1 X (1) 2
X (2) 0
X (3) 2
Z ( 0) 0
Z (1) 2 j 2
Z (2) 0
Z (3) 2 j 2
Example 10-8
DFT of x(n) (n) :
N 1
X (k ) (n)WN
nk
1 k 0,1,..., N 1
n 0
Time-shift property
N 1
nk
n 0
WN
n0 k
e j 2kn0 / N
Page 10-21
Instructor: Zhang
x1 (n) 1 x2 (n) 1 0 n N 1
X 1 (k ) X 2 (k )
m 0
N 1
n0
n0
x1 (n)WN nk
x2 (n)WN nk
k 0
N 1
N
nk
W
N 0
n0
1
N
x (m) x (n m)
N 1
k0
N 2
X 3 (k ) X 1 (k ) X 2 (k )
0
N 1
1
x3c (n) x3 (k )e j 2nk / N
N k 0
N 1
k 0
k 0
N 1
N 2 (k )e j 2nk / N
k 0
N 1
N e j 2nk / N Ne j 2nk / N N
k 0
x3c (n) N
2kt 2k
T
N
(1
2
T
T
)
N
x(n) X (k )e j 2nk / N
k 0
N0
x(n) X (k )e j 2nk / N
k 0
Frequencies with
2N 0
have been filtered!
N
Page 10-22
Example 10-10
x(n) cos
Instructor: Zhang
cos
n
4
2 2
( )
8 N
2 (
n
2
0n7
2
4
)2
N
8 2
X (0),
X (1),
X (2),
X (7 )
0
non zero non zero 0
0
?
4
2. Spectrum Analyzers
Analog oscilloscopes => time-domain display
Spectrum Analyzers: Data Storage, FFT
3. Energy Spectral Density
x(0), , x(N-1): its energy definition
N 1
| x ( n) |2
n0
Parsevals Theorem
N 1
| x ( k ) |2
E
N
k 0
Page 10-23