The comparison of a waveform with a shifted copy of itself, measuring similarity as a function of lag.