Anda di halaman 1dari 31

1

Signal Processing
Mike Doggett
Staffordshire University
2
CORRELATION
Introduction
Correlation Function Continuous-Time
Functions
Auto Correlation and Cross Correlation
Functions
Correlation Coefficient
Correlation Discrete-Time Signals
Correlation of Digital Signals
3
INTRODUCTION

Correlation techniques are widely used in signal
processing with many applications in
telecommunications, radar, medical electronics,
physics, astronomy, geophysics etc . . .. .


4
Correlation has many useful properties, giving for
example the ability to:

Detect a wanted signal in the presence of noise
or other unwanted signals.

Recognise patterns within analogue, discrete-
time or digital signals.

Allow the determination of time delays through
various media, eg free space, various materials,
solids, liquids, gases etc . . .

5
Correlation is a comparison process.

The correlation betweeen two functions is a
measure of their similarity.

The two functions could be very varied. For
example fingerprints: a fingerprint expert can
measure the correlation between two sets of
fingerprints.
6
This section will consider the correlation of
signals expressed as functions of time. The
signals could be continuous, discrete time or
digital.

When measuring the correlation between two
functions, the result is often expressed as a
correlation coefficient, , with in the range 1
to +1.
7






Correlation involves multiplying, sliding and
integrating







Similar but opposite No similarity Exactly similar
= - 1 = 0 = +1
8
Consider 2 functions
9

10

11
Consider 2 more functions
12
Consider 2 more functions
13
CONVOLUTION


























t = 0

0010110111

1110110100
SYSTEM
Signal
14
CORRELATION FUNCTION CONTINUOUS
TIME FUNCTIONS
Consider two continuous functions of time, v
1
(t)
and v
2
(t). The functions may be random or
deterministic.
The correlation or similarity between these two
functions measured over the interval T is given
by:
( )
}



=
2
2
2 1 ) ( ) (
1
12
T
T
dt t v t v
T
T
R
Lim
t t
15
The functions may be deterministic or random.

R12(t) is the correlation function and is a
measure of the similarity between the functions
v1(t) and v2(t).

The measure of correlation is a function of a new
variable, t, which represents a time delay or time
shift between the two functions.
16
Note that correlation is determined by multiplying
one signal, v1(t), by another signal shifted in time,
v2(t-), and then finding the integral of the
product,

Thus correlation involves multiplication, time
shifting (or delay) and integration.
17
The integral finds the average value of the
product of the two functions, averaged over a
long time (T ) for non-periodic functions.

For periodic functions, with period T, the
correlation function is given by:
( )
}

=
2
2
2 1 ) ( ) (
1
12
T
T
dt t v t v
T
R t t
18
The correlation process is illustrated below:






As previously stated:


V
OUT








v
1
(t)
1
0
T
V dt x
T
}

V
X

Variable
Delay t
v
2
(t)

v
2
(t - t)
R
12
(t)
( )
}

=
2
2
2 1 ) ( ) (
1
12
T
T
dt t v t v
T
R t t
19

The output R
12
() is the correlation between the
two functions as a function of the delay .

The correlation at a particular value of would
be solved by solving R
12
(),
20
AUTO CORRELATION AND CROSS CORRELATION
FUNCTIONS
Auto Correlation
In auto correlation a signal is compared to a time
delayed version of itself. This results in the Auto
Correlation Function or ACF.
Consider the function v(t), (which in general may
be random or deterministic).

The ACF, R(t) , is given by
( )
}

=
2
2
) ( ) (
1
T
T
dt t v t v
T
R t t
21
Of particular interest is the ACF when t = 0, and
v(t) represents a voltage signal:




R(0) represents the mean square value or
normalised average power in the signal v(t)
( )
}

=
2
2
2
) (
1
0
T
T
dt t v
T
R
22
Cross Correlation
In cross correlation, two separate signals are
compared, eg the functions v1(t) and v2(t)
previously discussed.

The CCF is
( )
}

=
2
2
2 1 ) ( ) (
1
12
T
T
dt t v t v
T
R t t
23
Diagrams for ACF and CCF
Auto Correlation Function, ACF






Note, if the input is v1(t) the output is R11(t)
if the input is v2(t) the output is R22(t)










v(t)
1
0
T
V dt x
T
}

V
X

Variable
Delay t
v(t - t)
R(t)
24
Cross Correlation Function, CCF










v
1
(t)
1
0
T
V dt x
T
}

V
X

Variable
Delay t
v
2
(t)

v
2
(t - t)
R
12
(t)
25
CORRELATION COEFFICIENT
The correlation coefficient, , is the normalised
correlation function.

For cross correlation (ie the comparison of two
separate signals), the correlation coefficient is
given by:




Note that R
11
(0) and R
22
(0) are the mean square
values of the functions v
1
(t) and v
2
(t) respectively.

) 0 ( ). 0 (
) (
22 11
12
R R
R t
=
26
For auto correlation (ie the comparison of a signal
with a time delayed version of itself), the
correlation coefficient is given by:





For signals with a zero mean value, is in the
range 1 < < +1


) 0 (
) (
) 0 ( ). 0 (
) (
R
R
R R
R t t
= =
27
If = +1 then the are equal (Positive correlation).

If = 0, then there is no correlation, the signals
are considered to be orthogonal.

If = -1, then the signals are equal and opposite
(negative correlation)
28
EXAMPLES OF CORRELATION
CONTINUOUS TIME FUNCTIONS










v
1
(t)
1
0
T
V dt x
T
}

v
2
(t) = coset

R
12
(0)
29
The above may be used for the demodulation of
PSK/PRK (Phase Shift Keying / Phase Reversal
Keying) signals.

For PSK/PRK, the input signal is v1(t) = d(t)coset,
d(t) = +V for data 1s and d(t) = -V for data 0s.

The second function, v2(t) = coset, is the carrier
signal.

Analyse the above process to determine the
output R12(0) for the inputs given.
30
CORRELATION DISCRETE TIME SIGNALS




31
CORRELATION OF DIGITAL SIGNALS
Searching for Synchronisation Pattern 01111110, in
Data Bit Stream








Sync Data Sync




X0


X1


X2

X3

X4

X5

X6

X7

X8

X9

X10

X11

X12

X13

X14

X15



















. . 1 1 0 0 0 1 1 0 0 1 1 1 1 1 1 0 1 1 0 1 0 0 1 0 0 0 1 0 0 1 0 1 0 1 1 1 1 1 1 0
0 1 1 1 1 1 1 0
Data In
Clock
S0 S1 S2 S3 S4 S5 S6 S7

Sum Agreements EA

Compare
Threshold T bits
Sync found if
EA > T bits

Anda mungkin juga menyukai