本文へスキップ

リソース · ガイド・記事

Fourier Transform

フーリエ変換の仲間である FT、DFT、DTFT、FFT を概念的に紹介し、続いて円とスムージーのたとえを使って直感を重視した説明をしています。一般的なコーディング面接よりも、信号処理、音声、グラフィックス分野の職に向かう候補者に合っています。

確認日

元のサイトを開く: Fourier Transform (元のサイトを新しいタブで開きます)

ロードマップに追加

取り組んでいるロードマップにこのリソースを追加できます。自分用の追加リソースとして表示され、ロードマップの手順は変わらず、記録した手順数にも数えられません。

出典コンテンツの言語:英語

The Fourier Transform (FT) decomposes a function of time (a signal) into the frequencies that make it up, in a way similar to how a musical chord can be expressed as the frequencies (or pitches) of its constituent notes. The Discrete Fourier Transform (DFT) converts a finite sequence of equally-spaced samples of a function into a same-length sequence of equally-spaced samples of the discrete-time Fourier transform (DTFT), which is a complex-valued function of frequency. The interval at which the DTFT is sampled is the reciprocal of the duration of the input sequence. An inverse DFT is a Fourier series, using the DTFT samples as coefficients of complex sinusoids at the corresponding DTFT frequencies. It has the same sample-values as the original input sequence. The DFT is therefore said to be a frequency domain representation of the original input sequence. If the original sequence spans all the non-zero values of a function, its DTFT is continuous (and periodic), and the DFT provides discrete samples of one cycle. If the original sequence is one cycle of a periodic function, the DFT provides all the non-zero values of one DTFT cycle. The Discrete Fourier transform transforms a…

PrepKit の概要

この概要は PrepKit 編集部がソースリポジトリをもとに執筆・確認したもので、リソース本文の引用ではありません。

対象
ソースにレベルの記載はありません
形式
記事

扱っている内容

  • FT、DFT、DTFT、FFT を区別する定義と、逆 DFT が返すもの
  • DFT 行列を疎な因子に分解することで、直接の DFT の O(n^2) から O(n log n) に高速化する FFT の仕組み
  • 時間領域と周波数領域の見方。10〜50 Hz のコサイン波の和の分析を含みます
  • スムージーのレシピを突き止めるという平易なたとえと、オイラーの公式を通じて円運動で考える理由
  • DFT の記号 N、n、k、x_n、X_k の用語集と、1/N の係数をどこに置けるか

使い方

PrepKit の学習アドバイスであり、ソースの主張ではありません。

記号の用語集をもとに直接計算の O(n^2) の DFT を実装し、2つの正弦波の和を入力して、期待される k の値に2つのピークが現れることを確かめてください。次に再帰的な radix-2 FFT を加え、出力が一致するか確認します。

範囲と制約

公式は画像で、Explanation の節の数式と図は betterexplained.com に置かれています(そのガイドが最初の参考文献です)。FFT アルゴリズムの手順やコードの解説はありません。多くのソフトウェア面接にとっては専門的すぎる内容です。

利用方法と形式

GitHub の MIT ライセンスの trekhleb/javascript-algorithms リポジトリにある README です。英語で無料で読め、フランス語訳へのリンクがあります。

PrepKit が 2026/10/02 に確認しました。 リソースの出典のコミット: 85293e3e2b88

この概要の根拠
  • src/algorithms/math/fourier-transform/README.md

この項目を掲載しているページ

PrepKit ニュースレターを受け取る

任意です。PrepKit の利用には必要ありません。

メールアドレスの取り扱いについて