Decibel¶
The decibel module contains basic functions for decibel arithmetic.
-
acoustics.decibel.
dbsum
(levels, axis=None)[source]¶ Energetic summation of levels.
Parameters: - levels – Sequence of levels.
- axis – Axis over which to perform the operation.
\[L_{sum} = 10 \log_{10}{\sum_{i=0}^n{10^{L/10}}}\]
-
acoustics.decibel.
dbmean
(levels, axis=None)[source]¶ Energetic average of levels.
Parameters: - levels – Sequence of levels.
- axis – Axis over which to perform the operation.
\[L_{mean} = 10 \log_{10}{\frac{1}{n}\sum_{i=0}^n{10^{L/10}}}\]
-
acoustics.decibel.
dbadd
(a, b)[source]¶ Energetic addition.
Parameters: - a – Single level or sequence of levels.
- b – Single level or sequence of levels.
\[L_{a+b} = 10 \log_{10}{10^{L_b/10}+10^{L_a/10}}\]Energetically adds b to a.
-
acoustics.decibel.
dbsub
(a, b)[source]¶ Energetic subtraction.
Parameters: - a – Single level or sequence of levels.
- b – Single level or sequence of levels.
\[L_{a-b} = 10 \log_{10}{10^{L_a/10}-10^{L_b/10}}\]Energitally subtract b from a.