Skip to content

Commit 83fa5cd

Browse files
committed
Remove spectral flatness
I'm not sure if this is needed and the formula is incorrect and this will improve test coverage.
1 parent f727044 commit 83fa5cd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

waveform_analysis/_common.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,6 @@ def dB(q):
132132
return 20 * np.log10(q)
133133

134134

135-
def spectral_flatness(spectrum):
136-
"""
137-
The spectral flatness is calculated by dividing the geometric mean of
138-
the power spectrum by the arithmetic mean of the power spectrum
139-
140-
I'm not sure if the spectrum should be squared first...
141-
"""
142-
return gmean(spectrum)/np.mean(spectrum)
143-
144-
145135
def parabolic(f, x):
146136
"""
147137
Quadratic interpolation for estimating the true position of an

0 commit comments

Comments
 (0)