changeset 390:ecdb95580c4e

Merge branch 'master' of https://github.com/amsehili/auditok
author www-data <www-data@c4dm-xenserv-virt2.eecs.qmul.ac.uk>
date Tue, 02 Mar 2021 21:17:57 +0000
parents 5fd9b6b7ff0d (current diff) 9e143e277d51 (diff)
children 6ccd8225c48c
files
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/auditok/signal.py	Tue Mar 02 20:17:57 2021 +0000
+++ b/auditok/signal.py	Tue Mar 02 21:17:57 2021 +0000
@@ -135,7 +135,7 @@
 def calculate_energy_single_channel(data, sample_width):
     """Calculate the energy of mono audio data. Energy is computed as:
 
-    .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2)) # noqa: W605
+    .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2)) % # noqa: W605
 
     where `a_i` is the i-th audio sample and `N` is the number of audio samples
     in data.
--- a/auditok/util.py	Tue Mar 02 20:17:57 2021 +0000
+++ b/auditok/util.py	Tue Mar 02 21:17:57 2021 +0000
@@ -264,7 +264,7 @@
     samples (see :func:`AudioEnergyValidator.is_valid`), the energy is computed
     as:
 
-    .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2)) # noqa: W605
+    .. math:: energy = 20 \log(\sqrt({1}/{N}\sum_{i}^{N}{a_i}^2))  % # noqa: W605
 
     where `a_i` is the i-th audio sample.