Similarities between thermal energy and temperature