where formula_4 is the cross-spectral density of the signal and formula_5 and formula_6 are the power spectral density functions of formula_1 and formula_2, respectively. The cross-spectral density and the power spectral density are defined as the Fourier transforms of the cross-correlation and the autocorrelation signals, respectively. For instance, if the signals are functions of time, the cross-correlation is a measure of the similarity of the two signals as a function of the time lag relative to each other and the autocorrelation is a measure of the similarity of each signal with itself in different instants of time. In this case the coherence is a function of frequency. Analogously, if formula_1 and formula_2 are functions of space, the cross-correlation measures the similarity of two signals in different points in space and the autocorrelations the similarity of the signal relative to itself for a certain separation distance. In that case, coherence is a function of wavenumber (spatial frequency).