用户名: 密码:
新用户注册
监管者: Fencer 
 BrainKing.cz

Klub pro všechny, kteří se zajímají o BrainKing samotný, jeho strukturu, vlastnosti a budoucnost.




每页的消息:
讨论板列表
您未权限在该板张贴消息。只有最低脑马级别的会员才允许张贴在该板。
状态: 所有人能发表
帖子搜索:  

17. 八月 2003, 19:22:26
Fencer 
private int computeRating(int oldUserRating, int oldOpponentRating, int gameCounted, int coef)
{
int newUserRating = oldUserRating;
if (gameCounted = Utils.gamesCompletedForSpecialRatingFormula) // special rating formula
newUserRating = Math.round((gameCounted * oldUserRating + oldOpponentRating + coef * 400) / (gameCounted + 1));
else // standard rating formula
{
double S = coef == -1 ? 0 : (coef == 0 ? 0.5 : 1);
int N = gameCounted > 50 ? 50 : gameCounted;

double Nr = oldUserRating >= 2200 ? 50 : 50 / Math.sqrt(1 + (2200 - oldUserRating) * (2200 - oldUserRating) / 10000);
double Ne = Math.min(N, Nr);
double K = 800 / (Ne + 1);
double We = 1 / (Math.pow(10, -(oldUserRating - oldOpponentRating) / 400) + 1);
newUserRating = (int)Math.round(oldUserRating + K * (S - We));
}
return newUserRating;
}

17. 八月 2003, 19:24:12
dexter 
题目: Re:
No jasně! Jo a co to je?

日期和时间
在线的朋友
最喜欢的讨论板
朋友群
每日提示
Copyright © 2002 - 2024 Filip Rachunek, 版权所有
回顶端