quote:
Originally posted by WDZ
it looks like you need every vote available when you do that calculation... I'm not good at math anyway.
It always is, ain't it?
quote:
Originally posted by WDZ
How would it update the user's reputation number? It would first have to delete the previous reputation change you made, then add the new one... right?
No, its the average among all my votes. The overall rating can be stored, but the number of users having voted the user should also be stored.
I suggest doing the following (MySQL):
(each user would need to have a positive votes and negative votes (ie given votes) columns)
(each user needs a column with the rating number)
-I rate post by Tochjo positively [Tochjo's id appears once in my positive column -> this vote counts as (+1)/1 and is added to Tochjos rating. Tochjo's current rating: 1]
-I rate another post by Tochjo positively [Tochjo's id appears now twice in the positive column -> Tochjo's rating is substracted the old rating (+1/1) and added the new one ((+1+1)/2), the same though. Tochjo's current rating: 1]
-I rate Tochjo negatively [Tochjo's id appears twice in my positive column and once in my negative column -> Substract the old rating ((+1+1)/2) and add (+1+1-1)/3=0.33. Tochjo's current rating: 0.33]
-WDZ rates a post by Tochjo positively [WDZ's positive column gets once Tochjo's uid -> Tochjo gets +1/1=1 added to his rating. Tochjo's current rating: 1.33]
And so on...
The more members vote Tochjo POSITIVELY, the higher the rating will be (different user ratings are added). The better I rate Tochjo, the more my rating for him will approach +1, but never surpass it, though (different ratings for one member are averaged).
I think it's a better alternative than the simple adding or the simple averaging
-