Virgo Logbook
UTC--:--:--
GPS-
Reports
Interesting data›Interesting data #19348

Dynamical range of discrete Fourier transform

If we try to measure the DARM filter, computing the coherence between Gc_Differential and Gc_DARM_z, it might appear that there is a lack of coherence in the region around 10 Hz. This effect is related to the finite dynamical range of discrete fourier transforms used to compute the power spectrum. This is a well known and written in all text-books, but it might be useful to recall it. An example is shown in the first figure. The spectrum of Gc_DARM_z is computed using two different time windows. There is a clear difference in the region around 10 Hz. The spectrum compute with shorter time window is affected by leaking of the large DC component at higher frequencies. It is well known that this effect depends on the window function used. Indeed, the second plot compares the spectrum with several different function and the same shorter length. The one used in dataDisplay is, I guess, the Hann one. Some other window functions have smaller tails at higher frequencies. For example, the best one for a signal with large dynamical range in the Nutall one, which allows recovering the expected shape of the spectrum. The simplest way to compare the spectral leaking with different windows is to compare the spectrum of a pure sine. The third plot shows the computed spectrum of a 1 kHz line with some windows: the Hann used in dataDisplay, the Hamming one which is Matlab default, the Blackmann and the Nutall ones which are the best ones in terms of dynamical range. The fourth plot shows the same thing, but the frequency is expressed in terms of bins from 1000 Hz. This clearly shows the different tails and the slightly different resolution of these windows. In summary, one should take additional care when computing the spectrum of signals with large dynamical range, since it is easy to produce artifact. It might be useful to consider the possibility to have different window functions even in dataDisplay.