예제 #1
0
// NewPlayer creates and returns a Player with a specified skill level.
func NewPlayer(id int, mu, sigma float64) Player {
	return Player{
		id: id,
		g:  stats.NewGaussian(mu, sigma),
	}
}
예제 #2
0
// NewDefaultPlayer creates and returns a Player with default values for skill
// estimation.
func NewDefaultPlayer(id int) Player {
	return Player{
		id: id,
		g:  stats.NewGaussian(DefMu, DefSig),
	}
}