X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02-2.git/blobdiff_plain/97ee1d88e84df79d82c3ca20eb89378c65197f9a..eba03e3f2ea5a98a2e7bae4d229e0117fe619d9a:/library/enviroplus/noise.py?ds=inline diff --git a/library/enviroplus/noise.py b/library/enviroplus/noise.py index 6830bd0..7b6d5e2 100644 --- a/library/enviroplus/noise.py +++ b/library/enviroplus/noise.py @@ -76,7 +76,7 @@ class Noise(): amp_low = numpy.mean(magnitude[noise_floor:mid_start]) amp_mid = numpy.mean(magnitude[mid_start:high_start]) amp_high = numpy.mean(magnitude[high_start:noise_ceiling]) - amp_total = (low + mid + high) / 3.0 + amp_total = (amp_low + amp_mid + amp_high) / 3.0 return amp_low, amp_mid, amp_high, amp_total