What is the average price of a stock

What methods are used to calculate a stock’s average purchase price?