Skip to content
Oakfield Operator Calculus Function Reference Site

Spectral Entropy

For spectral energy weights pkp_k normalized from u^(k)\hat{u}(k),

pk=u^(k)2ju^(j)2,H=kpklogpkp_k = \frac{|\hat{u}(k)|^2}{\sum_{j} |\hat{u}(j)|^2}, \qquad H = -\sum_{k} p_k \log p_k

Requires nonnegative energy spectrum u^(k)2|\hat{u}(k)|^2 with finite sum; pkp_k forms a probability distribution. Entropy satisfies 0HlogN0 \le H \le \log N for NN discrete modes (or extends to integrals in the continuous case).


Invariant to global scaling of u^\hat{u}. Minimal entropy (zero) occurs when energy is concentrated in one mode; maximal entropy logN\log N when energy is uniform over NN modes.


After ideal low-pass filtering, entropy typically decreases as energy concentrates at low kk. For white spectra with NN equal modes, H=logNH = \log N.


  • Single-mode spectrum: H=0H=0.
  • Uniform energy across NN modes: H=logNH=\log N.

Spectral bandwidth measures dispersion of energy in kk-space; spectral filtering and phase modulation alter pkp_k and thus entropy.


Oakfield computes spectral entropy as a built-in diagnostic:

  • SimFieldStats.spectral_entropy is computed by taking an FFT of the (flattened) field, forming normalized power pkp_k, then evaluating pklogpk-\sum p_k\log p_k with a log(n) normalization.
  • Used to detect mode concentration (low entropy) vs broadband/noisy behavior (high entropy), especially when using spectral operators or filtering.

Spectral entropy applies Shannon’s entropy to normalized spectral energy, treating the spectrum as a probability distribution over modes.

It is a common scalar diagnostic for concentration vs. spread in modal representations, especially in turbulence and wave simulations.


  • Cover & Thomas, Elements of Information Theory
  • Bracewell, The Fourier Transform and Its Applications