algorithm used to calculate 5 star ratings

前端 未结 14 1136
挽巷
挽巷 2021-01-29 17:49

I need to calculate 5-star ratings like the one on Amazon website. I have done enough search to find what is the best algorithm, but I am not able to get a proper answer. For ex

14条回答
  •  青春惊慌失措
    2021-01-29 18:25

    Weighted average, sum the number of stars times its weight, and then divide it through by the total number of reviews.

提交回复
热议问题