Represents a set of players and it's corresonding aliases.
Mais...
Derivada de IEnumerable< Player >.
Represents a set of players and it's corresonding aliases.
◆ 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
-
◆ AddPlayer()
void LSRE2.PlayerBase.AddPlayer |
( |
Player |
player, |
|
|
string |
alias |
|
) |
| |
Adds a new player to the PlayerBase and binds it to an alias.
- Parâmetros
-
◆ 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
-
- 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
-
history | History of games |
iterations | How many times the approximation algorithm should run |
resolution | Resolution 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
-
lsrmin | The inclusive LSR lower bound of the range |
lsrmax | The exclusive LSR upper bound or the range |
seed | The random seed if not null; otherwise the seed will be random. |
◆ Count
int LSRE2.PlayerBase.Count |
|
get |
Gets the player count in this playerbase.
◆ this[int index]
Player LSRE2.PlayerBase.this[int index] |
|
get |
◆ this[string alias]
Player LSRE2.PlayerBase.this[string alias] |
|
get |
Gets an instance of player given it's alias.
- Parâmetros
-
- Retorna
A documentação para esta classe foi gerada a partir do seguinte ficheiro: