Documentation
¶
Index ¶
- func New() types.Rating
- func NewWithOptions(options *types.OpenSkillOptions) types.Rating
- func Ordinal(r types.Rating) float64
- func PredictDraw(teams []types.Team, options *types.OpenSkillOptions) float64
- func PredictRank(teams []types.Team, options *types.OpenSkillOptions) ([]int64, []float64)
- func PredictWin(teams []types.Team, options *types.OpenSkillOptions) []float64
- func Rate(teams []types.Team, options *types.OpenSkillOptions) []types.Team
- func TeamOrdinal(t types.TeamRating) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithOptions ¶
func NewWithOptions(options *types.OpenSkillOptions) types.Rating
NewWithOptions returns a new Rating mu is the mean of the rating distribution sigma is the standard deviation of the rating distribution
func PredictDraw ¶
func PredictDraw(teams []types.Team, options *types.OpenSkillOptions) float64
PredictDraw returns the probability of each team drawing
func PredictRank ¶
PredictRank returns the probability of each team ranking
func PredictWin ¶
func PredictWin(teams []types.Team, options *types.OpenSkillOptions) []float64
PredictWin returns the probability of each team winning
func Rate ¶
Rate takes an array of ratings and returns a new array of ratings based on their performance
func TeamOrdinal ¶
func TeamOrdinal(t types.TeamRating) float64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.