時間と周波数領域の相互変換。
時間領域で見てよくわからない信号でも、周波数領域で見ると性質がわかる場合がある。
フーリエ変換 $$ X(\omega) = \int_{-\infty}^{+\infty} x(t)e^{-i \omega t}dt $$
フーリエ逆変換 $$ x(t) = \int_{-\infty}^{+\infty} X(\omega)e^{+i \omega t}d\omega $$
フーリエ変換を離散化して、デジタルなフーリエ変換を行う方法。
- DCT(Discrete Cosine Transform)
- FFT(Fast Fourier Transform) DCTの高速版!
離散フーリエ変換
- DCTを実装し、結果をグラフ表示
- DCTへ以下の波形を与え、それぞれのスペクトルを確認
$\sin(\frac{2\pi t}{N} \cdot 10)$ $\sin(\frac{2\pi t}{N})+\sin(\frac{2\pi t}{N} \cdot 10)$ $\sin(\frac{2\pi t}{N})+\sin(\frac{2\pi t}{N} \cdot 10)+\frac{1}{5} \sin(\frac{2\pi t}{N} \cdot 20)$
- N=128, N=1024, N=2048についてそれぞれ試す
- 計算時間をチェックする
- FFTへ以下の波形を与え、それぞれのスペクトルを確認
$\sin(\frac{2\pi t}{N} \cdot 10)$ $\sin(\frac{2\pi t}{N})+\sin(\frac{2\pi t}{N} \cdot 10)$ $\sin(\frac{2\pi t}{N})+\sin(\frac{2\pi t}{N} \cdot 10)+\frac{1}{5} \sin(\frac{2\pi t}{N} \cdot 20)$
- N=128, N=1024, N=2048についてそれぞれ試す
- DCTとの計算時間の違いを測定(N=2048)