Spectral flatness for audio signals and auditory spectrograms
specifies options using one or more flatness
= spectralFlatness(x
,f
,Name,Value
)Name,Value
pair arguments.
[
returns the spectral arithmetic mean and spectral geometric mean.flatness
,arithmeticMean
,geometricMean
] = spectralFlatness(___)
The spectral flatness is calculated as described in [1]:
where
sk is the spectral value at bin k.
b1 and b2 are the band edges, in bins, over which to calculate the spectral spread.
[1] Johnston, J.d. "Transform Coding of Audio Signals Using Perceptual Noise Criteria." IEEE Journal on Selected Areas in Communications. Vol. 6, Number 2, 1988, pp. 314–323.