;The Fourier transform of the cross correlation function is the ;product of the Fourier transform of the first series and the ;complex conjugate of the Fourier transform of the second series. Function CrossCorrelate, X, Y FFT_X=FFT(X,-1); Forward transformation of X FFT_Y=FFT(Y,-1); Forward transformation of Y FFT_CC=FFT_X*CONJ(FFT_Y); Product of above is Forward transformation of correlation return,FFT(FFT_CC,1); Inverse transform of product == correlation end