Exglicko2.Rating (exglicko2 v0.2.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
Link to this function
composite(ratings)
Creates a rating with a value, deviation, and volatility that is the average of all given ratings.
Link to this function
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}
Link to this function
new()
Returns a new Exglicko2.Rating
suited to new players.
Link to this function
new(rating, deviation, volatility)
Returns a new Exglicko2.Rating
with the given values.
Link to this function
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}
Link to this function