To compare two different waveforms as a function of time shift, measuring how similar they are at each lag.