Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

EMB CrossCorrelation (DSP Module)

LabVIEW DSP Module 2.5 Help
August 2007

NI Part Number:
371300C-01

»View Product Info

Computes the cross correlation of the input signals X and Y.

Details  

X is the first input sequence.
Y is the second input sequence.
Rxy is the cross correlation of X and Y.

EMB CrossCorrelation Details

The cross correlation Rxy(t) of the sequences x(t) and y(t) is defined as

,

where the symbol denotes correlation.

The discrete implementation of the EMB CrossCorrelation VI is as follows. Let h represent a sequence whose indexing can be negative, let n be the number of elements in the input sequence X, let m be the number of elements in the sequence Y, and assume that the indexed elements of X and Y that lie outside their range are equal to zero,

xj = 0, j < 0 or j n

and

yj = 0, j < 0 or j m.

Then the EMB CrossCorrelation VI obtains the elements of h using

for j = –(n – 1), –(n – 2), …, –2, –1, 0, 1, 2, …, m – 1

The elements of the output sequence Rxy are related to the elements in the sequence h by

Rxyi = hi – (n – 1)

for i = 0, 1, 2, …, size – 1, size = n + m – 1,

where size is the number of elements in the output sequence Rxy.

Because you cannot index LabVIEW arrays with negative numbers, the corresponding cross correlation value at t = 0 is the nth element of the output sequence Rxy. Therefore, Rxy represents the correlation values that the EMB CrossCorrelation VI shifted n times in indexing.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit