rating

package
v0.0.0-...-9146945 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() types.Rating

New returns a new Rating with default options

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 Ordinal

func Ordinal(r types.Rating) float64

func PredictDraw

func PredictDraw(teams []types.Team, options *types.OpenSkillOptions) float64

PredictDraw returns the probability of each team drawing

func PredictRank

func PredictRank(teams []types.Team, options *types.OpenSkillOptions) ([]int64, []float64)

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

func Rate(teams []types.Team, options *types.OpenSkillOptions) []types.Team

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL