Spectral centroid
The spectral centroid is a measure used in digital signal processing to characterise a spectrum.[src] It indicates where the center of mass of the spectrum is located.[src] Perceptually, it has a robust connection with the impression of brightness of a sound.[src] It is sometimes called center of spectral mass.[src]
The spectral centroid is a measure used in digital signal processing to characterise a spectrum.[src] It indicates where the center of mass of the spectrum is located.[src] Perceptually, it has a robust connection with the impression of brightness of a sound.[src] It is sometimes called center of spectral mass.[src] ==Calculation== It is calculated as the weighted mean of the frequencies present in the signal, determined using a Fourier transform, with their magnitudes as the weights: \text{centroid} = \frac{ \sum_{n=0}^{N-1} f(n) x(n) } { \sum_{n=0}^{N-1} x(n) }, where x(n) represents the weighted frequency value, or magnitude, of bin number n, and f(n) represents the center frequency of that bin.[src] ==Alternative usage== Some people use "spectral centroid" to refer to the median of the spectrum.[src] This is a different statistic, the difference being essentially the same as the difference between the unweighted median and mean statistics.[src] Since both are measures of central tendency, in some situations they will exhibit some similarity of behaviour.[src] But since typical audio spectra are not normally distributed, the two measures will often give strongly different values.[src] Grey and Gordon in 1978 found the mean a better fit than the median.[src] ==Applications== Because the spectral centroid is a good predictor of the "brightness" of a sound, it is widely used in digital audio and music processing as an automatic measure of musical timbre.[src] ==References==[src]
16 sentences · 16 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Spectral centroid." encyclopegia.org, 2025, https://encyclopegia.org/wiki/spectral-centroid. Accessed 06 December 2026.
Chicago
"Spectral centroid." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/spectral-centroid.
APA
encyclopegia.org. (2025). Spectral centroid. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/spectral-centroid
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON