Function getNormalizedSpectrum