It's possible the original poster is trying to determine the angle of arrival of a tone or some more complex waveform. If so, calculating the time-domain cross correlation and finding the (interpolated) correlation peak is probably more computationally efficient and almost certainly more robust way to go about it.
1 Like