I'm studying the power spectrum.
Right now, I am making a program to try to make sure that the "Fourier transform of the multiplication of some data and window function" and the "convolution of the Fourier transform of some data and window function respectively" match.
$\mathcal{F}[f(t) w(t)]= F(\omega)*W(\omega)$
Since the left-hand side is just a Fourier transform, we could easily get the correct result. However, the right hand side is not calculated properly and does not match the result of the left hand side. The beginning and the end of the data are greatly inflated compared to the results obtained from the left side.
The right-hand side of the convolution theorem (which is actually discrete) is an expression like this
$\int_{0}^{N-1} F\left(\omega^{\prime}\right) W\left(\omega-\omega^{\prime}\right) \mathrm{d} \omega^{\prime}$.
If we consider the case where $\omega=0$, then $(- \omega ^\prime)$ will be 0, or negative.
In this case, how should we define $W(\omega ^\prime)$ in a case like this?
If $\omega ^\prime$= 0, or a negative value, should it be $W(\omega ^\prime)=0$ since there is only data between 0 and N-1? (I tried that, but it didn't give me the right result.)
sorry for my bad English, thank you!
It looks like this image.
Blue is the correct form of the left side, and red is the power spectrum obtained from the convolution in the frequency domain of the right side.
Perhaps the integration range of the convolution integral is wrong...