Hey guys!
I recently developed an algorithm that can be used for average rating calculations in content rating systems. It allows an average rating to be re-calculated upon a new vote only with simple mathematical operations, without the previous ratings having to be retrieved one-by-one from a database, summed up and then divided by their total number like in most traditional solutions based on the standard arithmetic mean equation.
I’ve described it in detail on my blog and would love to hear the opinions of other PHP professionals: [URL=”http://www.marinbezhanov.com/web-development/18/calculating-average-rating-the-right-way-using-php-and-mysql/”]Calculating Average Rating the Right Way using PHP and MySQL
Thanks for the attention!