From 7e5a1476c0f4523641d0bb7801f0baa1cfbeba78 Mon Sep 17 00:00:00 2001 From: Joshua Chin Date: Wed, 17 Jun 2015 14:34:03 -0400 Subject: [PATCH] updated dB_to_freq docstring Former-commit-id: 68b1c121bdee3029b78cc3c9fac0bc6c805ff9d4 --- wordfreq/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wordfreq/__init__.py b/wordfreq/__init__.py index f9c8405..3f3a09a 100644 --- a/wordfreq/__init__.py +++ b/wordfreq/__init__.py @@ -128,8 +128,10 @@ def get_frequency_list(lang, wordlist='combined', match_cutoff=30): def dB_to_freq(dB): """ - Converts decibels to freequency. - If the decibels is positive, throws a ValueError + Decibels are a logarithmic scale of frequency. 0dB represents a frequency + of 1 (it happens every time). -10dB represents a frequency of 1/10, or + 1 in every 10. -20dB represents a frequency of 1/100. In general x dB + represents a frequency of 10 ** (x/10) """ if dB > 0: raise ValueError(