The spectrum of the averaging of a function over pseudotrajectories of a dynamical system