High frequency content measure


In signal processing, the high frequency content measure is a simple measure, taken across a signal spectrum, that can be used to characterize the amount of high-frequency content in the signal. The magnitudes of the spectral bins are added together, but multiplying each magnitude by the bin "position". Thus if X is a discrete spectrum with N unique points, its high frequency content measure is:
In contrast to perceptual measures, this is not based on any evidence about its relevance to human hearing. Despite that, it can be useful for some applications, such as onset detection.
The measure has close similarities to the spectral centroid measure, being essentially the same calculation but without normalization according to overall magnitude.