Construction of the autocorrelation function by the Fourier transform