A base class to estimate the rms - root-mean-square.
It provides a framework for estimating and analyzing the volume (rms) of a signal over a specified window length. It includes methods to calculate various statistical measures such as mean, median, variance, standard deviation, and z-scores of the volume values.
The main functionalities of the BaseVolume class include:
- Estimating the volume (RMS) of a signal.
- Calculating statistical measures such as mean, median, variance, standard deviation, and z-scores.
- Providing access to individual volume values and the entire list of volumes.
Example
>>> bv = BaseVolume(win_len=0.02)
>>> bv._volumes = [0.1, 0.2, 0.3, 0.4, 0.5]
>>> print(bv.mean())
> 0.3
>>> print(bv.max())
> 0.5
>>> print(bv.zscores())
> [-1.2649110640673518, -0.6324555320336759, 0.0, 0.6324555320336759, 1.2649110640673518]