Estimate the delay between times series x and time series y by correlating and finding the peak. The index of the peak correlation is returned in d.
Inputs:
Output:
Example:
x = [0, 0, 1, 2, 3]; y = [1, 2, 3]; d = finddelay (x, y) d = -2
See also: xcorr.
Package: communications