What is the relationship between temperature and kinetic energy?

Temperature is a measure of the average kinetic energy of the particles in an object. Temperatures also measure how kinetic energy is not how hot or cold it is. It's measuring what the amount of kinetic energy there when you throw something in the air and it comes back down.

example

There is a ball on the top of a book shelf, and there is one on the bottom. Which one has more kinetic energy? The one on the top, because it has more time to fall and it has more kinetic energy.