1 of 13

FFT and STFT

1

2 of 13

Signal Representation by Harmonic Sinusoids

  • Question
    • How to decompose it to harmonic sinusoids
    • How to find the coefficients of harmonic sinusoids
    • How to find the frequency components

2

 

3 of 13

Fast Fourier Transform (FFT)

3

4 of 13

FFT with Sampling Frequency

  • You can think this signal as a vibration signal from a rotating machinery with 60 Hz

4

5 of 13

Implementing FFT Routine

5

6 of 13

Single-sided FFT (or Positive FFT)

  •  

6

7 of 13

STFT (Short-Time Fourier Transformation)

7

8 of 13

Issue on FFT

8

9 of 13

Issue on FFT

9

10 of 13

Short-Time Fourier Transformation

  • Define analysis window
  • Define the amount of overlap between windows
    • e.g., 30%
  • Define a windowing function
    • e.g., Hann, Gaussian
  • Generate windowed segments
    • Multiply signal by windowing function
  • Apply the FFT to each windowed segment

10

11 of 13

STFT in Python

  • Python function ‘spectrogram’ is useful for easily computing STFTs

11

12 of 13

STFT: Time and Frequency

12

13 of 13

STFT Resolution Trade-off

13