Algorithms | latest | rms
RMS (root-mean-square)
The RMS is also known as the quadratic mean and is a measure for the average energy of a signal. RMS is widely used for AE / structure-borne sound analysis, e.g. for wear detection or leakage detection.
Applications
- Leakage detection (for example in valves)
- Wear detection
References
Code
INFO
The following snippet is written in a generic and unoptimized manner. The code aims to be comprehensible to programmers familiar with various programming languages and may not represent the most efficient or idiomatic Python practices. Please refer to implementations for optimized implementations in different programming languages.
py
import numpy as np
def rms(signal: np.ndarray) -> float:
return np.sqrt(np.mean(signal**2))