Skip to content

Commit

Permalink
power spectrum peak finder: Actually use RMS for tabular data output
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jul 4, 2017
1 parent 8e4c65f commit e23671f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audiohealth.py
Expand Up @@ -237,7 +237,7 @@ def power_spectrum(wavfile):


# Aggregate dictionary of peak frequencies mapping to their power
peak_data = dict(zip(peak_freq, peak_power))
peak_data = dict(zip(peak_freq, np.sqrt(peak_power)))

# Filter < 1500 Hz
peak_data = {freq: power for freq, power in peak_data.iteritems() if freq <= 1500}
Expand Down

0 comments on commit e23671f

Please sign in to comment.