- Player

#### Parameters

##### rating: number

##### rd: number

##### vol: number

##### tau: number

#### Returns Player

Internal rating in the Glicko-2 scale

Internal rating deviation

Internal volatility

Internal value for Tau

An array of the ratings of the opponents faced

An array of the rating deviations of the opponents faced

The default rating of the player Used in calculations between the Glicko scales

The id of the player

An array of the outcomes the player has been in

The volatility Algorithm for the player

#### Parameters

##### v: number

##### delta: number

##### __namedParameters: volatilityArgs

#### Returns number

The Glicko E function.

#### Parameters

##### p2rating: number

##### p2RD: number

#### Returns number

The delta function of the Glicko2 system. Calculation of the estimated improvement in rating (step 4 of the algorithm)

#### Parameters

##### v: number

#### Returns number

The Glicko2 g(RD) function.

#### Parameters

##### RD: number

#### Returns number

Calculation of the estimated letiance of the playerâ€™s rating based on game outcomes

#### Returns number

Calculates and updates the playerâ€™s rating deviation for the beginning of a rating period. preRatingRD() -> None

#### Returns void

Adds a result to the players object

#### Parameters

##### opponent: Player

##### outcome: number

The outcome: 0 = defeat, 1 = victory, 0.5 = draw

#### Returns void

#### Returns number

The rating of the player in the Glicko format

#### Returns { outcomes: number[]; rating: number; rd: number; vol: number }

An object of the players rating, rating deviation, volatility and the recent outcomes

##### outcomes: number[]

##### rating: number

##### rd: number

##### vol: number

#### Returns number

The rating deviation of the player

#### Returns number

The volatility value of the player

#### Returns boolean

A boolean value of if the player has played a game

Sets the rating of the player

#### Parameters

##### rating: number

The rating in Glicko format

#### Returns void

Sets the rating deviation of the player

#### Parameters

##### rd: number

#### Returns void

Sets the volatility value of the player

#### Parameters

##### vol: number

#### Returns void

Calculates the new rating and rating deviation of the player. Follows the steps of the algorithm described at http://www.glicko.net/glicko/glicko2.pdf

#### Returns void

The class for a player object