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.
The 14 Spectral Nodes
Ontological Mapping: Algorithms of Frequency
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
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
Frequency Sampling
- Evaluating DTFT at discrete points
- ω = 2πk/N sampling locations
- Bin spacing: Δf = f_s/N
- Connecting Realm 08 to Realm 10
Spectral Symmetry
- Conjugate symmetry for real inputs
- DC bin (k=0)
- Nyquist bin (k=N/2)
- Positive vs Negative frequency mirroring
Magnitude & Phase
- Extracting meaning from complex output
- |X[k]| (Amplitude strength)
- ∠X[k] (Timing / Alignment)
- Identifying dominant frequencies
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
Spectral Leakage
- Result of finite observation (truncation)
- Non-bin-aligned frequencies spread energy
- Mainlobe vs Sidelobes
- The necessity of Windowing
DFT Windows
- Tapering ends to zero to reduce discontinuities
- Hann, Hamming, Blackman, Kaiser
- Tradeoff: Sidelobe suppression vs Mainlobe width
- Reduces leakage, lowers peak resolution
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
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
Decimation in Time
- Splits input sequence into Even/Odd samples
- Bit-reversed input ordering
- Normal output ordering
- Recursively breaks down time domain
Decimation in Freq
- Splits frequency output into Even/Odd halves
- Normal input ordering
- Bit-reversed output ordering
- Computationally equivalent to DIT
FFT Classification
- Naive DFT vs O(N log N) Algorithms
- DIT vs DIF architectures
- Magnitude vs Phase representation
- Leakage vs Bin-aligned analysis
14 — The Spectral Laboratory
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.