maad.util.rms
- maad.util.rms(s)[source]
Compute the root-mean-square (RMS) level of an input signal.
RMS is defined as the square root of the arithmetic mean of the square of a set of numbers [1]. The RMS is used to estimate de mean amplitude level of an audio signal or any alternative time series.
- Parameters:
- s1D array
Input signal to process
- Returns:
- rms: float
Root mean square of input signal
References
[1]‘Root mean square’ (2010). Wikipedia. Available at https://en.wikipedia.org/wiki/Root_mean_square
Examples
>>> from maad import sound, util >>> s, fs = sound.load('../data/spinetail.wav') >>> rms_value = util.rms(s)