LSRE 2
Referência à classe LSRE2.PlayerBase

Represents a set of players and it's corresonding aliases. Mais...

Derivada de IEnumerable< Player >.

Membros públicos

 PlayerBase (CSV csv)
 Gets a new instance of PlayerBase given a CSV. Mais...
 
void AddPlayer (Player player, string alias)
 Adds a new player to the PlayerBase and binds it to an alias. Mais...
 
void CentralizeLSR ()
 Shifts each player's LSR an equal amount such that the average will be 0.0. Mais...
 
void EstimateRatings (History history, int iterations=20, double resolution=0.005)
 Runs an algorithm that estimates the rating of each player in the PlayerBase given a history of matches. Mais...
 
void RandomizeRatings (double lsrmin, double lsrmax, int? seed=null)
 Randomize each players skill rating in a uniform distribution within a specific LSR range. Mais...
 
IEnumerator< PlayerGetEnumerator ()
 
override string ToString ()
 

Membros públicos estáticos

static PlayerBase Create (int n)
 Gets a new instance of n PlayerBase with players named as Player1 ... PlayerN. Mais...
 

Propriedades

Player this[string alias] [get]
 Gets an instance of player given it's alias. Mais...
 
int Count [get]
 Gets the player count in this playerbase. Mais...
 
Player this[int index] [get]
 Gets an instance of Player from the PlayerBase by index. Mais...
 

Descrição detalhada

Represents a set of players and it's corresonding aliases.

Documentação dos Construtores & Destrutor

◆ PlayerBase()

LSRE2.PlayerBase.PlayerBase ( CSV  csv)

Gets a new instance of PlayerBase given a CSV.

First column of the csv represents the player names, and the second column represents it's corresponding aliases.

Parâmetros
csv

Documentação dos métodos

◆ AddPlayer()

void LSRE2.PlayerBase.AddPlayer ( Player  player,
string  alias 
)

Adds a new player to the PlayerBase and binds it to an alias.

Parâmetros
playerPlayer
aliasAlias

◆ CentralizeLSR()

void LSRE2.PlayerBase.CentralizeLSR ( )

Shifts each player's LSR an equal amount such that the average will be 0.0.

◆ Create()

static PlayerBase LSRE2.PlayerBase.Create ( int  n)
static

Gets a new instance of n PlayerBase with players named as Player1 ... PlayerN.

Parâmetros
nHow many players
Retorna
A new instance of n PlayerBase with players named as Player1 ... PlayerN

◆ EstimateRatings()

void LSRE2.PlayerBase.EstimateRatings ( History  history,
int  iterations = 20,
double  resolution = 0.005 
)

Runs an algorithm that estimates the rating of each player in the PlayerBase given a history of matches.

Parâmetros
historyHistory of games
iterationsHow many times the approximation algorithm should run
resolutionResolution of the calculus functions

◆ RandomizeRatings()

void LSRE2.PlayerBase.RandomizeRatings ( double  lsrmin,
double  lsrmax,
int?  seed = null 
)

Randomize each players skill rating in a uniform distribution within a specific LSR range.

Parâmetros
lsrminThe inclusive LSR lower bound of the range
lsrmaxThe exclusive LSR upper bound or the range
seedThe random seed if not null; otherwise the seed will be random.

Documentação das propriedades

◆ Count

int LSRE2.PlayerBase.Count
get

Gets the player count in this playerbase.

◆ this[int index]

Player LSRE2.PlayerBase.this[int index]
get

Gets an instance of Player from the PlayerBase by index.

Parâmetros
index
Retorna

◆ this[string alias]

Player LSRE2.PlayerBase.this[string alias]
get

Gets an instance of player given it's alias.

Parâmetros
alias
Retorna

A documentação para esta classe foi gerada a partir do seguinte ficheiro: