Skip to contents

Calculates the K factor for a team based on matches played. Uses exponential decay from k_max to k_min.

Usage

get_dynamic_k(matches_played, k_max, k_min, k_halflife)

Arguments

matches_played

Number of matches the team has played

k_max

Maximum K factor for new teams

k_min

Minimum K factor floor

k_halflife

Matches until K decays halfway

Value

K factor value

Examples

get_dynamic_k(0, k_max = 40, k_min = 20, k_halflife = 50)
#> [1] 40
get_dynamic_k(100, k_max = 40, k_min = 20, k_halflife = 50)
#> [1] 22.70671