Documentation
¶
Overview ¶
Implements the Glicko Rating System described at http://www.glicko.net/glicko.html.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contest ¶
type Contest struct {
// 1 for win, 0 for loss, 0.5 for tie
Outcome float64
// Rating and Deviation of Opponent
*Rank
}
Contest records a single contest outcome against an opponent and that oppenents rating and rating deviation at the time.
func NewContest ¶
type Contests ¶
type Contests []*Contest
A collection of results for a single player during rating period
type Rank ¶
func UpdateRating ¶
Returns updated rating and updated rating deviation based on the provided contest results. If len(options) == 0, default values for minRD, maxRD, t, and c are used. Otherwise, must provide minRD, maxRD, t, and c.