kriichi {PlayerRatings}R Documentation

A multi-player K Factor Function for Riichi Mahjong

Description

Calculates the K factor for the rating system employed by Tenhou for Riichi mahjong.

Usage

kriichi(rating, games, gv = 400, kv = 0.2) 

Arguments

rating

A numeric vector of player ratings. The K factor does not depend on this quantity.

games

A numeric vector with the number of games played by each player.

gv

A value giving the threshold for the number of games played.

kv

The K factor if the number of games played is greater than or equal to gv.

Details

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.

Value

A numeric vector of K factors.

See Also

elom, fide


[Package PlayerRatings version 1.1-0 Index]