Equipartition theory