stem/Signal Proc/Fourier Transform.md
Andy Pack f29c435494 vault backup: 2023-12-27 22:38:55
Affected files:
.obsidian/graph.json
.obsidian/workspace.json
Gaming/Steam controllers.md
Gaming/Ubisoft.md
STEM/Signal Proc/Convolution.md
STEM/Signal Proc/Fourier Transform.md
STEM/Signal Proc/Pole-Zero.md
STEM/Signal Proc/System Classes.md
STEM/Signal Proc/Transfer Function.md
STEM/Speech/Linguistics/Consonants.md
STEM/Speech/Linguistics/Linguistics.md
STEM/Speech/Linguistics/Terms.md
STEM/Speech/Linguistics/Vowels.md
STEM/Speech/Literature.md
STEM/Speech/NLP/Jargon.md
STEM/Speech/NLP/NLP.md
STEM/Speech/NLP/Recognition.md
STEM/Speech/Perception/Perception.md
STEM/Speech/Speech Processing/Applications.md
STEM/Speech/Speech Processing/Source-Filter.md
STEM/Speech/Speech Processing/Vocal Tract.md
Work/Applications/Anthropic/Cover letter.md
Work/Applications/Anthropic/In line with values.md
Work/Applications/Anthropic/Why Work.md
Work/Companies.md
Work/Freelancing.md
Work/Products.md
Work/Tech.md
2023-12-27 22:38:56 +00:00

1.7 KiB

tags
signals
maths
X(\omega)=\int_{-\infty}^{\infty}x(t)e^{-j\omega t}dt
x(t)=\frac{1}{2\pi}\int_{2\pi}X(\omega)e^{j\omega t}d\omega

Discrete-Time

X(\omega)=\sum_{-\infty}^{\infty}x[n]e^{-j\omega n}
x[n]=\frac{1}{2\pi}\int_{2\pi}X(\omega)e^{j\omega n}d\omega

Discrete Fourier Transform

Digital Signal

X[k]=\sum_{n=0}^{N-1}x[n]e^{-j\omega_{k}n}
x[n]=\frac{1}{N}\sum_{k=0}^{N-1}X[k]e^{j\omega_{k}n}, n=0,1,\ldots,N-1

Power Spectral Density

PSD

P[k]=|X[k]|^2

Spectrogram

  • PSD vertically
  • Frequency power over time horizontally
  • Time and frequency resolution inversely proportional
  • Resolution
    • Frequency
      • fs/N
    • Time
      • N/fs
  • STFT has fixed resolution depending on window size
    • Wider window
      • Better frequency res
      • Worse time resolution
        • Can't tell where stuff changes with big window
    • Can't use too wide
      • Frequency can change during window
  • 20-30ms window of speech usually treated as quasi-stationary
  • Overlapping window
    • Hop size of 5ms
  • Appending windows can cause discontinuities
    • Use window function to smooth
      • Hann

Fast-Fourier

FFT

  • Faster version of DFT
    • Three parts
      • Shuffling
        • Bit reversal
        • Shuffle N-dimensional input into N one-dimensional signals
      • N one-point DFTs
      • Merge
        • N one-point DFTs into one N-point DFT
        • Butterfly merging equations

Short-Time Fourier Transform

STFT

  • Short-term
  • N-point windowed DFT
    • Probably use FFT
x[k,m]=\sum_{n=0}^{N-1}x[m\delta+n]w(n)e^{-j\omega_kn}
  • \omega
    • Discrete angular frequency
  • m
    • Time-frame index
  • \delta
    • Hop size
  • w(n)
    • Window function
    • Hann