You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing a spectral analysis, it is important to multiply each window of input samples by a so-called windowing function. This causes samples at the beginning and end of the window being reduced to zero with the original amplitude being retained in the middle of the window.
The reason that this is important is that the Fourier transform assumes the input is periodic. A batch of samples isn't, however, and there can be considerable mismatch between the beginning of the sample window and the end. That mismatch causes very poor quality in the quality of the display.
As an example, here are a few cycles of a sine wave:
You can see how the first sample on the left is 0 and the last sample is about -1. If you do an analysis that presumes this sampled signal repeats these samples over and over, there will be a big jump from -1 back to 0 when you go from the end back to the beginning.
It is better to use a windowing function. A good choice is $2 \thinspace \sin^2({\pi t} / (n \Delta t))$. This changes our sine wave into this:
Here, the windowing function is shown as a light red ghost on top of the windowed signal.
In the spectral display, this makes a lot of difference because the step from the end back to the beginning is an impulse that raises the noise floor dramatically.
For instance, here is a plot of the signal above with and without windowing. The difference in noise floor is about 150dB which is massive.
In such a spectral displace, the vertical display should be calibrated using a factor based on the number of samples in a window and the gain of the input signal. If we want to display dBm (dB referenced to 1mW), and we have n = 10000 samples in our data and the input gives us a value of 127 for a 1V input, a 1dBm signal would appear to have a magnitude of 109dB after doing the Fourier transform which is computed using
When doing a spectral analysis, it is important to multiply each window of input samples by a so-called windowing function. This causes samples at the beginning and end of the window being reduced to zero with the original amplitude being retained in the middle of the window.
The reason that this is important is that the Fourier transform assumes the input is periodic. A batch of samples isn't, however, and there can be considerable mismatch between the beginning of the sample window and the end. That mismatch causes very poor quality in the quality of the display.
As an example, here are a few cycles of a sine wave:
You can see how the first sample on the left is 0 and the last sample is about -1. If you do an analysis that presumes this sampled signal repeats these samples over and over, there will be a big jump from -1 back to 0 when you go from the end back to the beginning.
It is better to use a windowing function. A good choice is$2 \thinspace \sin^2({\pi t} / (n \Delta t))$ . This changes our sine wave into this:
Here, the windowing function is shown as a light red ghost on top of the windowed signal.
In the spectral display, this makes a lot of difference because the step from the end back to the beginning is an impulse that raises the noise floor dramatically.
For instance, here is a plot of the signal above with and without windowing. The difference in noise floor is about 150dB which is massive.
In such a spectral displace, the vertical display should be calibrated using a factor based on the number of samples in a window and the gain of the input signal. If we want to display dBm (dB referenced to 1mW), and we have n = 10000 samples in our data and the input gives us a value of 127 for a 1V input, a 1dBm signal would appear to have a magnitude of 109dB after doing the Fourier transform which is computed using
where$v_{0dB} = \sqrt{0.05} = 0.22$ is the voltage that results in 1dB into a $50 \Omega$ .
The text was updated successfully, but these errors were encountered: