Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kriichi

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


PlayerRatings

Dynamic Updating Methods for Player Ratings Estimation

v1.1-0
GPL-3
Authors
Alec Stephenson and Jeff Sonas.
Initial release
2020-02-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.