Skip to content
Oakfield Operator Calculus Function Reference Site

Root-Mean-Square

For samples {xi}i=1N\{x_i\}_{i=1}^{N},

RMS(x)=1Ni=1Nxi2\operatorname{RMS}(x) = \sqrt{\frac{1}{N}\sum_{i=1}^{N} x_i^{2}}

For complex data, RMS uses xi2|x_i|^{2} inside the sum.

Requires finite second moment. Output is nonnegative real.


Always satisfies RMS(x)μ\operatorname{RMS}(x) \ge |\mu| (Cauchy–Schwarz). Invariance to sign flips. Scales linearly with scalar multiplication.


If all samples equal cc, RMS equals c|c|. For zero-mean signals, RMS(x)=σ2\operatorname{RMS}(x) = \sqrt{\sigma^{2}}.


  • Constant samples xi=cx_i=c give RMS=c\operatorname{RMS}=|c|.
  • Zero-mean signals satisfy RMS2=σ2\operatorname{RMS}^2=\sigma^2 (under matching conventions).

Mean and variance provide complementary first and second moments; energy norms extend RMS to continuous fields.


Oakfield reports RMS magnitude directly in its field statistics:

  • SimFieldStats.rms is computed as mean(u2)\sqrt{\mathrm{mean}(|u|^2)} for real or complex fields.
  • Used as a scale indicator for visualization, threshold selection, and stability monitoring.

RMS is a standard quadratic average used in physics and engineering to measure effective magnitude of oscillatory signals.

It is widely used as an energy-proportional magnitude measure and as a normalization target in numerical pipelines.


  • Bracewell, The Fourier Transform and Its Applications
  • Oppenheim & Schafer, Discrete-Time Signal Processing