# HG changeset patch # User Amine Sehili # Date 1730361999 -3600 # Node ID 44dcd2c4d860e75f064e5102999842f812295bd8 # Parent 6cf3ea23fadb1ffd23d1c3e183b955c1137e2aff Update latex code in docstring diff -r 6cf3ea23fadb -r 44dcd2c4d860 auditok/signal.py --- a/auditok/signal.py Thu Oct 31 08:26:18 2024 +0100 +++ b/auditok/signal.py Thu Oct 31 09:06:39 2024 +0100 @@ -90,7 +90,7 @@ 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`. diff -r 6cf3ea23fadb -r 44dcd2c4d860 auditok/util.py --- a/auditok/util.py Thu Oct 31 08:26:18 2024 +0100 +++ b/auditok/util.py Thu Oct 31 09:06:39 2024 +0100 @@ -260,7 +260,7 @@ 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.