Calculate cross correlation manually

  • Thread starter Thread starter paulie walnut
  • Start date Start date
  • Tags Tags
    Correlation Cross
Click For Summary
SUMMARY

The discussion focuses on manually calculating the cross correlation of two signals using the formula ccxy[k] = ∑ x[n] * y[n+k]. The variable k represents the time delay or offset between the two signals in discrete samples. For example, if signal x arrives 2 samples later than signal y, then k equals 2. Understanding this concept is crucial for comparing signals effectively, especially when analyzing their relationships over time.

PREREQUISITES
  • Understanding of discrete signals and sampling
  • Familiarity with the concept of time delay in signal processing
  • Basic knowledge of summation notation and mathematical expressions
  • Experience with signal comparison techniques
NEXT STEPS
  • Study the mathematical derivation of cross correlation
  • Learn about the properties of cross correlation in signal processing
  • Explore software tools that automate cross correlation calculations
  • Investigate the implications of time delays in real-world signal applications
USEFUL FOR

This discussion is beneficial for signal processing engineers, data analysts, and anyone interested in understanding the manual calculation of cross correlation between signals.

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.
 

Similar threads

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