本文介绍了如何计算分数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题比任何编程语言都更与逻辑相关.如果问题不适合该论坛,请告诉我,我将删除它.

This question is more related to logic than any programming language. If the question is not apt for the forum please do let me know and I will delete this.

我必须写一个逻辑来计算Blog Award网站的Blog得分.博客可以被提名多个奖项类别,并且由评审委员会以-1到5的等级进行同行评审或评分(-1表示他们完全不喜欢的博客).现在,一个或多个评委可以对博客进行评分.计算博客最终得分的一个标准是,如果博客被更多人给予正面评价,则应该获得更大的权重(反之亦然).同样,即使被一个评委评定为-1的博客,其得分也会受到影响(-1在这里有点像否决权).最后,我还想根据博客的Technorati排名获得一个额外的分数(以便最终分数基于Juror评分+ Technorati排名的总和).

I have to write a logic to calculate scores for blogs for a Blog Award website. A blog may be nominated for multiple award categories and is peer-reviewed or rated by a Jury on a -1 to 5 scale (-1 to indicate a blog they utterly dislike). Now, a blog can be rated by one or more Jurors. One criterion while calculating final score for a blog is that if a blog is rated positively by more people it should get more weightage (and vice-versa). Similarly a blog rated -1 even by one Juror should have its score affected (-1 is sort of a Veto here). Lastly, I also want to have an additional score based on the Technorati rank of the blog (so that the final score is based on a mix of Juror rating + Technorati ranking).

示例:一个博客在A类中的总评委为6名. 2将其评分为3,3将其评分为2,将其1评分为4.(我用来计算得分为(2 * 3 + 3 * 2 + 1 * 4)/6 = 16/6 = 2.67进行加权平均值,但我对此不满意,主要是因为当Juror评分为-1时,效果不佳.此外,我还需要添加Technorati排名标准.)

Example: A blog is rated in category A by total 6 Jurors. 2 rate it at 3, 3 rate it at 2 and 1 rate it at 4. (I used to calculate the score as (2*3 + 3*2 + 1*4)/6 = 16/6 = 2.67 to get weighted average but I am not satisfied with this, primarily because it doesn't work well when a Juror rating is -1. Moreover, I need to add the Technorati ranking ranking criteria too) .

您能帮我确定计算最终分数的最佳方法吗(保持与上面相同的评分方法,因为现在无法更改)?

Could you help me decide the best way to calculate the final scores (keeping the rating method same as above as that cannot be changed now)?

推荐答案

如果您想更强地加权-1评级的效果,请使用相同的平均分数计算,但只要看到-1便用-10代替.如果您不希望负面评分的权重如此之高,则可以选择-10以外的值.

If you want to weight the effect of a -1 rating more strongly, use the same average score calculation but substitute -10 whenever you see -1. You can choose a value other than -10 if you don't want a negative rating to weight as strongly.

这篇关于如何计算分数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 17:31