alexanderlerch/ACA-Code

FeatureSpectralSpread: Hz to bin conversion

Closed this issue · 1 comments

Bug in conversion of spectral centroid from Hz to bin index.
On line 13 of FeatureSpectralSpread.m, size(X,1) should be (size(X,1)-1).

vsc = FeatureSpectralCentroid (X, f_s)*2/f_s * size(X,1);