Implement microcanonical_averages