Documentation ¶
Index ¶
Constants ¶
View Source
const ( RATING_SCALE_PARAMETER = 173.7178 RATING_BASE_R = 1500 RATING_BASE_RD = 350 RATING_BASE_SIGMA = 0.06 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchResult ¶
type MatchResult float64
const ( MATCH_RESULT_WIN MatchResult = 1.0 MATCH_RESULT_DRAW MatchResult = 0.5 MATCH_RESULT_LOSS MatchResult = 0.0 )
func MatchResultFromScore ¶
func MatchResultFromScore(score1 float64, score2 float64) MatchResult
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func NewDefaultPlayer ¶
func NewDefaultPlayer() *Player
type Rating ¶
type Rating struct {
// contains filtered or unexported fields
}
func NewDefaultRating ¶
func NewDefaultRating() *Rating
func (Rating) ConfidenceInterval ¶
type RatingPeriod ¶
type RatingPeriod struct {
// contains filtered or unexported fields
}
func NewRatingPeriod ¶
func NewRatingPeriod() *RatingPeriod
func (*RatingPeriod) AddMatch1Player ¶
func (period *RatingPeriod) AddMatch1Player(player1 *Player, player2 *Player, score MatchResult)
func (*RatingPeriod) AddMatch2Player ¶
func (period *RatingPeriod) AddMatch2Player(player1 *Player, player2 *Player, score MatchResult)
func (*RatingPeriod) AddPlayer ¶
func (period *RatingPeriod) AddPlayer(player *Player)
func (*RatingPeriod) Calculate ¶
func (period *RatingPeriod) Calculate()
Click to show internal directories.
Click to hide internal directories.