Comp Sci Power spectrum when the wave number is not an integer

Click For Summary
The discussion revolves around the creation of a power spectrum from a sine wave using a Discrete Fourier Transform (DFT) program. The sine wave has a frequency of 4.5 Hz, and the resulting power spectrum shows side lobes due to the non-integer wave number. The user expresses confusion about why the spectrum does not match the expected product of the data's power spectrum and the window function's power spectrum, specifically when using a square wave window. It is noted that the discontinuity in the signal contributes to the observed spectrum shape, and there is a desire to understand the relationship between the wave number and the resulting spectrum more clearly. The conversation highlights the complexities of Fourier transforms and the effects of windowing on spectral analysis.
arcTomato
Messages
104
Reaction score
27
Homework Statement
I would like to know the about the power spectrum of a sin wave when the wave number is not integer.
Relevant Equations
Fourier transform
Hi all.

I made a program of DFT, so I made the power spectrum of a sin wave.
This is the sin wave I used.
All data number ##N=100## and the frequency of sine wave is 4.5Hz.

1576251868710.png

And the power spectrum is this.
1576252821780.png


The wave number is not integer so the spectrum has the side lobe.
But I think this is not right.
I think the power spectrum shape should be the product of the data's power spectrum and the window function's power spectrum(in my case the window is Square wave, and in the under image is also square wave too).
like this.
スクリーンショット 2019-12-14 0.58.15.png

      

I would like to know why the shape of the spectrum I made is like this.

Thank you.
 
Physics news on Phys.org
Keep in mind that the FT assumes periodic continuation. Your 4 1/2 periods don't transform to a single spike that way.
 
Hi @BvU again!
yes!
because there is the discontinuity point, right??
but I would like to understand why in another way(the spectrum of window).
I think the spectrum of the data which wave number is 9 is single spike.
If I multiply the data (9 wave number) with square wave(it becomes 4.5 wave number ), I think the spectrum should look like the third image.
But the spectrum I made is not look like.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 4 ·
Replies
4
Views
4K