Calculates the K factor for the rating system employed by Tenhou for Riichi mahjong.
kriichi(rating, games, gv = 400, kv = 0.2)
A numeric vector of player ratings. The K factor does not depend on this quantity.
A numeric vector with the number of games played by each player.
A value giving the threshold for the number of games played.
The K factor if the number of games played is greater
than or equal to gv
.
A numeric vector of K factors.
This function is designed to be used for the kfac
argument
of elom
. It returns kv
for players who have
played at least gv
games, and returns 1-(1-kv)N/gv
otherwise, where N
is the number of games played.