Max external to calculate the spectral centroid.