Glicko.win_probability

You're seeing just the function win_probability, go back to Glicko module for more information.
Link to this function

win_probability(player, opponent)

Specs

win_probability(player :: Glicko.Player.t(), opponent :: Glicko.Player.t()) ::
  float()

Calculates the probability of a player winning against an opponent.

Returns a value between 0.0 and 1.0.

Link to this function

win_probability(player_rating, opponent_rating, opponent_rating_deviation)

Specs

win_probability(
  player_rating :: Glicko.Player.rating(),
  opponent_rating :: Glicko.Player.rating(),
  opponent_rating_deviation :: Glicko.Player.rating_deviation()
) :: float()

Calculates the probability of a player winning against an opponent from a player rating, opponent rating and opponent rating deviation.

Values provided for the player rating, opponent rating and opponent rating deviation must be v2 based.

Returns a value between 0.0 and 1.0.