开发者

How to sort entities by 5 star user rating

开发者 https://www.devze.com 2022-12-21 19:52 出处:网络
I am开发者_运维知识库 trying to find a formula http://www.evanmiller.org/how-not-to-sort-by-average-rating.html

I am开发者_运维知识库 trying to find a formula

http://www.evanmiller.org/how-not-to-sort-by-average-rating.html

The one from the above link is too hard to implement. Is there a nicer and simpler way to sort entities by a five star user rating control ?

Think at jokes. People say jokes and others rate them with 1 to 5 stars.

If

a) 5 users rate a joke with 5,

b) another 1000 rate another joke with 4 and finally,

c) another 1000 rate another joke with 3.8,

I want this specific order:

  • joke b)
  • joke c)
  • joke a)


I use a Bayesian Rating system and it's quite simple:

http://www.thebroth.com/blog/118/bayesian-rating

0

精彩评论

暂无评论...
验证码 换一张
取 消