Final Note
I hope the cross-correlation equations of a real periodic signal are now clear, as promised.
Discrete-time signal:
Continuous-time signal:
In some textbooks, you may encounter different definitions where
The difference in the definitions of cross-correlation comes down to the conventions and contexts in which they are used. Both definitions are valid but emphasize different perspectives on how the signals are aligned and shifted.
The first definition,
The second definition,
We used the first definition that is commonly used in signal processing and engineering. Here,
The second definition is often found in mathematics and statistics. In this case,
In signal processing and electrical engineering, the first definition is prevalent because it aligns with the typical practice of shifting the second signal to compare it with the first.
The second definition might be used more frequently in mathematics, statistics, and some theoretical contexts.