Professional Documents
Culture Documents
4
Linear rms Spectrum Correlation Convolution and DFT Correlation and DFT
RECAP
x 'n 0 0 n N 1 wn = 1 0 n N 1
N-Point Signal
xn = x 'n wn 0 n N 1
N-Point Windowed
DTFT Windowed
1 X (e ) = 2
j
X '(e j )W (e
j ( )
)d
1 e = =e 1 e j
j N
N 1 j ( ) 2
2 2 N N
RECAP
DFT and Power Spectrum
By definition
X [k ] = x[n]e
n =0
N 1 n =0 2
N 1
2 nk N
1 x[n] = N
X [k ]e
k =0
N 1
2 nk N
By definition of rms
1 N
N 1
1 X '[k ] = N
rms 2 =
n =0 N 1
x[n]e
n =0
N 1
2 nk N
f 1 X [k ] f = s N N
2
X '[k ] volts 2
2
Introduction Correlation There are applications where it is necessary to compare one reference signal with one or more signals to determine the similarity between the pair and to determine additional p information based on the similarity. Cross Correlation
y[n] = x1 [k ]x2 [n k ] = x1 [0]x2 [n 0] + x1 [1]x2 [n 1] + .... + x1 [ N 1]x2 [ n ( N 1)] y[0] = x1 [0]x2 [0 0] + x1 [1] x2 [0 1] + .... + x1 [ N 1]x2 [0 ( N 1)] y[1] = x1 [0]x2 [1 0] + x1 [1]x2 [1 1] + .... + x1 [ N 1]x2 [1 ( N 1)] . . y[ N 1] = x1 [0]x2 [( N 1) 0] + x1 [1]x2 [( N 1) 1] + .... + x1 [ N 1]x2 [( N 1) ( N 1)] Y [ N ] = x1 [0]x2 [ N 0] + x1 [1]x2 [ N 1] + .... + x1 [ N 1] x2 [ N ( N 1)] Y [ N + 1] = x1 [0]x2 [ N + 1 0] + x1 [1]x2 [ N + 1 1] + .... + x1 [ N 1]x2 [ N + 1 ( N 1)] . . . Y [2 N ] = x1 [0]x2 [2 N 0] + x1 [1]x2 [2 N 1] + .... + x1 [ N 1]x2 [2 N ( N 1)] Y [2 N + 1] = x1 [0]x2 [2 N + 1 0] + x1 [1]x2 [2 N + 1 1] + .... + x1 [ N 1]x2 [2 N + 1 ( N 1)] = 0 Y [2 N + 2] = 0
2N-1
REMARK ---- It is necessary that the two sequences be of the same length. Thus if the sequence are N 1 and N 2 points, then N 2 -1 augmenting zeros must be added to sequence of length N and N 1 -1 augmenting zeros must be added to the sequence of length N 2. B th sequence will now be of identical length N l th Both ill b f id ti l l th and the correct linear convolution will be obatined...
1 1
x1 0 n N1 1 x1[n] = 0 N 1 n N 1 + N 2 1 x2 0 n N 2 1 x 2[n] = 0 N 2 n N 2 + N 1 1
+N 2-1, N 1
N = N1 + N 2 1
REMARK ---- It is necessary that the two sequences be of the same length. Thus if the sequence are N 1 and N 2 points, then N 2 -1 augmenting zeros must be added to sequence of length N and N 1 -1 augmenting zeros must be added to the sequence of length N 2. B th sequence will now be of identical length N l th Both ill b f id ti l l th and the correct linear convolution will be obatined...
1 1
x1 0 n N1 1 x1[n] = 0 N 1 n N 1 + N 2 1 x2 0 n N 2 1 x 2[n] = 0 N 2 n N 2 + N 1 1
+N 2-1, N 1
N = N1 + N 2 1
Fin !!