The significance of the generalized density of states function for nuclear spectra