compute_iterative_ratings: Internal function to compute iterative ratings

Description Usage Arguments Details Value

View source: R/RcppExports.R

Description

C++ implementation of iterative computations.

Usage

1
2
compute_iterative_ratings(rate_fun, player1_id, score1, player2_id, score2,
  initial_ratings)

Arguments

rate_fun

Rating function (see Details).

player1_id

Integer vector of player1 identifiers.

score1

Numeric vector of player1 score in games.

player2_id

Integer vector of player2 identifiers.

score2

Numeric vector of player2 score in games.

initial_ratings

Numeric vector of initial ratings (see Details).

Details

rate_fun - function that takes arguments:

This function should return numeric vector of length 2: rating of player1 and player2 after the game.

player1_id, player2_id - integer vectors of identifiers of players in a form of increasing numbers (1, 2, ...). Identifier 0 is reserved for 'ghost' player. His/her rating is taken as current rating of opponent. For two 'ghost' players ratings before and after are 0.

initial_ratings - numeric vector of length equal to number of unique players in player1_id and player2_id. In initial_ratings[player_id - 1] (indexing from zero) initial rating of player with identifier 'player_id' is stored.

Value

A list:


comperank documentation built on March 26, 2020, 6:04 p.m.