Exglicko2.Rating (exglicko2 v0.3.0)
A Glicko-2 rating.
Ratings have a :value, :deviation, and :volatility.
Link to this section Summary
Functions
Creates a rating with a value, deviation, and volatility that is the average of all given ratings.
Build a new rating from first-generation Glicko rating values.
Returns a new Exglicko2.Rating suited to new players.
Returns a new Exglicko2.Rating with the given values.
Convert a rating to its first-generation Glicko equivalent.
Link to this section Functions
composite(ratings)
Creates a rating with a value, deviation, and volatility that is the average of all given ratings.
from_glicko(arg)
Build a new rating from first-generation Glicko rating values.
Examples
iex> Exglicko2.Rating.from_glicko({1500.0, 350, 0.06})
%Exglicko2.Rating{value: 0.0, deviation: 2.014761872416068, volatility: 0.06}
new()
Returns a new Exglicko2.Rating suited to new players.
This translates to Glicko1 standard values of {1500, 350, 0.06}
new(rating, deviation, volatility)
Returns a new Exglicko2.Rating with the given values.
to_glicko(rating)
Convert a rating to its first-generation Glicko equivalent.
Examples
iex> Exglicko2.Rating.new(0.0, 1.2, 0.06)
...> |> Exglicko2.Rating.to_glicko()
{1500.0, 208.46136, 0.06}