how do you calculate the average energy?

Wouldn't that depend on what the situation was?