Skip to content

Commit

Permalink
Fix equations in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
amsehili committed Mar 2, 2021
1 parent ff1124a commit e06640a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auditok/signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def separate_channels(data, fmt, channels):
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.
Expand Down
2 changes: 1 addition & 1 deletion auditok/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class AudioEnergyValidator(DataValidator):
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.
Expand Down

0 comments on commit e06640a

Please sign in to comment.