Documentation
¶
Index ¶
- func CentralMoment(games []GameStat, med float64, pow float64) float64
- func Dispersion(games []GameStat, med float64) float64
- func FindUsefulInfoCoefs_Gradient(part, aiType int, qRead info.QReadFunc)
- func GetUsefulCoefs(part, aiType int, qRead info.QReadFunc) []float64
- func Medium(games []GameStat) float64
- func RunGamesWithCoefs(count int, part int, aiType int, coefs []float64, qRead info.QReadFunc) float64
- type AIWithCoefs
- type GameStat
- type GeneticAlgorithm
- func (gen *GeneticAlgorithm) FindUsefulInfoV3Coefs(qRead info.QReadFunc)
- func (gen *GeneticAlgorithm) GetRandIdx() int
- func (gen *GeneticAlgorithm) NewDescendant(idx1, idx2 int) *GeneticNode
- func (gen *GeneticAlgorithm) NewMutationAbsolute(idx int) *GeneticNode
- func (gen *GeneticAlgorithm) NewMutationRelative(idx int, k float64, N int) *GeneticNode
- func (gen *GeneticAlgorithm) RunGamesWithCoefs(count int, aiTypes []int, coefs []float64, qRead info.QReadFunc) float64
- type GeneticNode
- type GeneticNodes
- type Stat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dispersion ¶
Types ¶
type AIWithCoefs ¶
type GeneticAlgorithm ¶
type GeneticAlgorithm struct {
Nodes GeneticNodes
Current int
GamesCounts []int
N []int
LowValues []float64
Mutations []float64
}
func NewGeneticAlgorithm ¶
func NewGeneticAlgorithm() *GeneticAlgorithm
func (*GeneticAlgorithm) FindUsefulInfoV3Coefs ¶
func (gen *GeneticAlgorithm) FindUsefulInfoV3Coefs(qRead info.QReadFunc)
func (*GeneticAlgorithm) GetRandIdx ¶
func (gen *GeneticAlgorithm) GetRandIdx() int
func (*GeneticAlgorithm) NewDescendant ¶
func (gen *GeneticAlgorithm) NewDescendant(idx1, idx2 int) *GeneticNode
func (*GeneticAlgorithm) NewMutationAbsolute ¶
func (gen *GeneticAlgorithm) NewMutationAbsolute(idx int) *GeneticNode
func (*GeneticAlgorithm) NewMutationRelative ¶
func (gen *GeneticAlgorithm) NewMutationRelative(idx int, k float64, N int) *GeneticNode
func (*GeneticAlgorithm) RunGamesWithCoefs ¶
type GeneticNode ¶
type GeneticNodes ¶
type GeneticNodes []GeneticNode
func (GeneticNodes) Len ¶
func (nodes GeneticNodes) Len() int
func (GeneticNodes) Less ¶
func (nodes GeneticNodes) Less(i, j int) bool
func (GeneticNodes) Swap ¶
func (nodes GeneticNodes) Swap(i, j int)
type Stat ¶
type Stat struct {
Count int `json:"count"`
Wins int `json:"wins"`
Medium float64 `json:"medium"`
Disp float64 `json:"disp"`
Asym float64 `json:"asymmetry"`
Kurt float64 `json:"kurtosis"`
AITypes []int `json:"ai_types"`
Games []GameStat `json:"game_stat"`
}
func ReadFromFile ¶
func (*Stat) SaveToFile ¶
func (*Stat) SetCharacteristics ¶
func (stat *Stat) SetCharacteristics()
Click to show internal directories.
Click to hide internal directories.