Skip to content

Commit

Permalink
Update latex code in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
amsehili committed Oct 31, 2024
1 parent b53792f commit 312c983
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 @@ -90,7 +90,7 @@ def calculate_energy(x, agg_fn=None):
The energy is calculated as:
.. math::
\text{energy} = 20 \log\left(\sqrt{\frac{1}{N} \sum_{i=1}^{N} a_i^2}\right) % # noqa: W605
\\text{energy} = 20 \\log(\\sqrt({1}/{N} \\sum_{i=1}^{N} {a_i}^2)) % # noqa: W605
where `a_i` is the i-th audio sample and `N` is the total number of samples
in `x`.
Expand Down
2 changes: 1 addition & 1 deletion auditok/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class AudioEnergyValidator(DataValidator):
as:
.. math::
energy = 20 \log(\sqrt({1}/{N} \sum_{i=1}^{N} {a_i}^2)) % # noqa: W605
\\text{energy} = 20 \\log(\\sqrt({1}/{N} \\sum_{i=1}^{N} {a_i}^2)) % # noqa: W605
where `a_i` represents the i-th audio sample.
Expand Down

0 comments on commit 312c983

Please sign in to comment.