Mercurial > hg > auditok
changeset 389:9e143e277d51
Fix equations in doc
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Tue, 02 Mar 2021 21:49:44 +0100 |
parents | bd242e80455f |
children | ecdb95580c4e 30f276d1bddf |
files | auditok/signal.py auditok/util.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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.