Learn R Programming

mau (version 0.4.0)

od_rating: Offensive - Defensive rating method

Description

Computes rating using the offensive-defensive method

Usage

od_rating(A, iter = 1000, rer = 1e-12)

Value

list with rating, offensive score, defensive score and number of iterations.

Arguments

A

matrix with scores

iter

number of iterations

rer

relative error to stop computation

Author

Pedro Guarderas pedro.felipe.guarderas@gmail.com

Examples

Run this code
A <- matrix( c( 0, 7, 21, 7, 0,
52, 0, 34, 25, 27, 
24, 16, 0, 7, 3,
38, 17, 5, 0, 14,
45, 7, 30, 52, 0 ), nrow = 5, ncol = 5 )
r <- od_rating( A )

Run the code above in your browser using DataLab