What is the average price of a share

How is the average price of a stock calculated?