Evaluating the influence of noise on the spectrum of an oscillator