|
Cute Chess
0.1
|
Utility class for calculating Elo statistics for a single player. More...
#include <elo.h>
Public Member Functions | |
| qreal | diff () const |
| qreal | drawRatio () const |
| Elo (int wins, int losses, int draws) | |
| qreal | errorMargin () const |
| qreal | LOS () const |
| qreal | pointRatio () const |
Utility class for calculating Elo statistics for a single player.
The Elo class can be used to calculate Elo difference, Elo error margin, etc. based on player's W/D/L statistics. At its present state it's very suitable for matches between two players but not that accurate when there are more than 2 players in a tournament. This is because the ratings are calculated as if each player's results were against a single opponent.
| Elo::Elo | ( | int | wins, |
| int | losses, | ||
| int | draws | ||
| ) |
Creates a new Elo object.
| qreal Elo::diff | ( | ) | const |
Returns the Elo difference.
| qreal Elo::drawRatio | ( | ) | const |
Returns the ratio of drawn games.
| qreal Elo::errorMargin | ( | ) | const |
Returns the error margin in Elo points.
| qreal Elo::LOS | ( | ) | const |
Returns the likelihood of superiority.
| qreal Elo::pointRatio | ( | ) | const |
Returns the ratio of points won.
1.8.11