Calculate cross correlation manually

  • Thread starter Thread starter paulie walnut
  • Start date Start date
  • Tags Tags
    Correlation Cross
Click For Summary
To calculate the cross correlation of two signals manually, the expression ccxy[k] = ∑ x[n] * y[n+k] is used, where k represents the time delay between the two signals. In discrete signals, k indicates how much one signal is offset from the other. For example, if signal x arrives two samples later than signal y, k would be set to 2. The variable n denotes the current sample number being analyzed. Understanding this process allows for a clearer comparison of the two signals despite their timing differences.
paulie walnut
Messages
9
Reaction score
0
I want to know how one might calculate the cross correlation of two signals by hand. I know that there are a myriad of software applications that will do this for me but I want to understand how it is done by hand. I'm using the expression:
ccxy[k] = ∑ x[n]. y[n+k]
I'm just not too sure what the k is this expression represents.

Thanks in advance!
 
Engineering news on Phys.org
You are comparing the samples of two signals, where one signal is delayed by an offset in its sample. Basically the k represents a time delay, but in discrete signals, this is a later sample. So say you have 2 signals x and y, each 10 samples long, but say x arrives 2 samples later than y, so to compare them as they arrived, you would offset your y samples by 2 samples, and so the k would be 2 and n would be your current sample number.
 
Thread 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

  • · Replies 45 ·
2
Replies
45
Views
4K
Replies
20
Views
4K
  • · Replies 3 ·
Replies
3
Views
620
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K