Digital Signal Processing: Cross-Correlation and Auto-Correlation Functions
Digital Signal Processing: Cross-Correlation and Auto-Correlation Functions
Lecture 6
Cross-correlation and Auto-
correlation Functions
1
Correlations of signals
• A measure of similarity between a pair of signals.
• 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 information based on the similarity.
• In digital communications, a set of data symbols are
represented by a set of unique discrete-time sequences. If
one of these sequences has been transmitted, the receiver
has to determine which particular sequence has been
received, by comparing the received signal with every
member of possible sequences from the set.
• Radar, sonar, digital communication, other areas of
science and engineering. 2
Cross-correlation and Auto-correlation Sequences
or, equivalently, as
k = 0, 1, 2, 3, … (2)
rxy [ k ] x[n k ] y[n]
n
3
Crosscorrelation and Autocorrelation Sequences (cont.)
• If we reverse the roles of x[n] and y[n] in (1) and (2)
and hence reverse the order of indices xy, we obtain
the crosscorrelation sequence
k = 0, 1, 2, 3, …… (3)
ryx k y[n]x[n k ]
n
or, equivalently, as
] = 0, 1, 2, 3, …
ryx [ k ] y[ n , k ] x[ nk (4)
n
5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
2 -1 3 7 1 2 -3
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
1 -1 2 -2 4 1 -2 5
Rxy[k] ={ 10, -9, 19, 36, 1-14,
-1 33,
2 -20, 4 1 -2 5
7, 13, -18, 16, -7, 5, -3}
6
Example : Find the correlation b/w the two sequences x[n]
and y[n] given by, x[k] = [3 1 2] y[k] = [3 2 1].
Solution:
= {3, 7, 13, 7, 6}
ryx k y[n]x[n k ] = { 6, 7, 13, 7, 3}
n
rxy[k] = ryx[-k]
7
Autocorrelation Function
• The Autocorrelation Function of x[n] is defined as
rxx k x[n]x[n k ]
n
or, equivalently, as
rxx[k ] x[n k ]x[n]
n
When k=0, 2
12
Tutorial 3
Q1: Compute the correlation sequences for the following pair
of signals:
(a) x[n] = [0, 1, -2, 3, -4], y[n] = [1/2, 1, 2, 1, 1/2]
13
Classification of LTI Discrete Time systems
• LTI discrete time systems are usually classified either
according to the length of their impulse response sequences
or according to the method of calculation employed to
determine the output samples.
• Classification based on impulse response length:
(a) Finite Impulse Response:
If h[n] is of finite length, then it is known as a finite impulse response
(FIR) discrete-time system. In this case the convolution sum reduces to
N2 N2
y[ n] or
h[k ]x[n k ] y[ n] x[k ]h[ n k ]
k N1 k N1
16