Spectrum function