spectrum_level function

Compute the spectrum level of a signal x.