RESOLUTION: Δf = f_s / N
COMPLEXITY: O(N log N)
ALGORITHM: RADIX-2_DIT
STATE: COMPUTING_SPECTRUM
ASKiIMAN™ DOOR 05 / DSP / REALM 10
--:-- · -- --- ----

Ontological Layer: The Computational Spectrum

The DFT & FFT

Turning Finite Samples into a Computable Frequency Spectrum

The Fast Spectrum Engine

The Fourier Transform of Realm 04 is a beautiful mathematical truth, but a computer cannot process an infinite continuous integral. To see the spectrum of a real digital signal, we must convert it into a finite matrix operation: The Discrete Fourier Transform (DFT). Because a naive DFT is computationally devastating, humanity invented the Fast Fourier Transform (FFT)—a recursive algorithmic miracle that shatters the calculation into rapid "Butterfly" operations, reducing the complexity from O(N²) to O(N log N) and making real-time digital signal processing possible.

FINITE SAMPLES x[n] → NAIVE DFT: O(N²) vs FFT: O(N LOG N) → TWIDDLE FACTORS → RADIX-2 BUTTERFLY → DISCRETE BINS X[k]

The 14 Spectral Nodes

Ontological Mapping: Algorithms of Frequency

CHAMBER 01

Why the DFT?

  • DTFT is not directly computable (infinite/continuous)
  • Need for finite-length data handling
  • Sampling a continuous spectrum
  • Transforming N samples to N frequency bins
CHAMBER 02

DFT Definition

  • X[k] = Σ x[n] e^(-j2πkn/N)
  • Input length N → Output length N
  • Frequency-bin index k
  • Twiddle factor (W_N) notation
CHAMBER 03

Frequency Sampling

  • Evaluating DTFT at discrete points
  • ω = 2πk/N sampling locations
  • Bin spacing: Δf = f_s/N
  • Connecting Realm 08 to Realm 10
CHAMBER 04

Spectral Symmetry

  • Conjugate symmetry for real inputs
  • DC bin (k=0)
  • Nyquist bin (k=N/2)
  • Positive vs Negative frequency mirroring
CHAMBER 05

Magnitude & Phase

  • Extracting meaning from complex output
  • |X[k]| (Amplitude strength)
  • ∠X[k] (Timing / Alignment)
  • Identifying dominant frequencies
CHAMBER 06

Frequency Resolution

  • Bin spacing: Δf = f_s/N
  • Increasing N improves actual discrimination
  • Zero-padding interpolates, doesn't add info
  • Observation duration dictates true resolution
CHAMBER 07

Spectral Leakage

  • Result of finite observation (truncation)
  • Non-bin-aligned frequencies spread energy
  • Mainlobe vs Sidelobes
  • The necessity of Windowing
CHAMBER 08

DFT Windows

  • Tapering ends to zero to reduce discontinuities
  • Hann, Hamming, Blackman, Kaiser
  • Tradeoff: Sidelobe suppression vs Mainlobe width
  • Reduces leakage, lowers peak resolution
CHAMBER 09

The FFT Concept

  • FFT is an algorithm, not a different transform
  • Naive DFT requires O(N²) operations
  • FFT reduces complexity to O(N log₂N)
  • The mathematical revolution of DSP
CHAMBER 10

Radix-2 Butterfly

  • Requires sequence length N = 2^m
  • The core computational unit of the FFT
  • A' = A + BW, B' = A - BW
  • Exploits periodic properties of twiddle factors
CHAMBER 11

Decimation in Time

  • Splits input sequence into Even/Odd samples
  • Bit-reversed input ordering
  • Normal output ordering
  • Recursively breaks down time domain
CHAMBER 12

Decimation in Freq

  • Splits frequency output into Even/Odd halves
  • Normal input ordering
  • Bit-reversed output ordering
  • Computationally equivalent to DIT
CHAMBER 13

FFT Classification

  • Naive DFT vs O(N log N) Algorithms
  • DIT vs DIF architectures
  • Magnitude vs Phase representation
  • Leakage vs Bin-aligned analysis
FINAL PROTOCOL

14 — The Spectral Laboratory

1. N=1024, f_s=44.1kHz -> Δf = 43.06Hz
2. APPLY HANN WINDOW TO REDUCE LEAKAGE
3. EXECUTE RADIX-2 DIT FFT -> SPECTRUM READY
[1] CALCULATE Δf [2] OBSERVE LEAKAGE [3] APPLY WINDOW [4] TRACE BUTTERFLY [5] COMPARE O(N²) TO O(NlogN)

The FFT is the engine that makes digital signal processing a practical reality. By transforming infinite mathematics into finite, logarithmically efficient matrices, we can analyze the frequency of the real world in real-time. Now that we can efficiently convert between time and frequency domains, we unlock the power of Realm 11: Digital Convolution.

SPECTRAL DIAGNOSTIC RUNNING