ERGODIC THEORY AND THE INTEGRATED DENSITY OF STATES function with values in a certain