# HG changeset patch # User Amine Sehili # Date 1614718184 -3600 # Node ID 9e143e277d5159a3cc89eef265393057c1d84529 # Parent bd242e80455f4df6adf48123e67a455d89e3b0ff Fix equations in doc diff -r bd242e80455f -r 9e143e277d51 auditok/signal.py --- a/auditok/signal.py Tue Mar 02 20:10:50 2021 +0100 +++ b/auditok/signal.py Tue Mar 02 21:49:44 2021 +0100 @@ -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. diff -r bd242e80455f -r 9e143e277d51 auditok/util.py --- a/auditok/util.py Tue Mar 02 20:10:50 2021 +0100 +++ b/auditok/util.py Tue Mar 02 21:49:44 2021 +0100 @@ -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.