Perturbation method to calculate the density of states.

Perturbation method to calculate the density of states.