Cute Chess  0.1
Public Member Functions | List of all members
Elo Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

Elo::Elo ( int  wins,
int  losses,
int  draws 
)

Creates a new Elo object.

Member Function Documentation

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.


The documentation for this class was generated from the following files: