pairing

package
v0.0.0-...-b9e61c6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alpha

type Alpha struct {
	AlphaCount int
}

Alpha pairing makes sure every new child has at least one parent who was one of the best of the previous generation.

func (Alpha) Pair

func (ap Alpha) Pair(p *pop.Population, populated int) [][]int

type Method

type Method interface {
	Pair(p *pop.Population, populated int) [][]int
}

type Random

type Random struct{}

func (Random) Pair

func (rp Random) Pair(p *pop.Population, populated int) [][]int

type ValIndexHeap

type ValIndexHeap [][2]int

The first element in each heap node is the value of that node, and the second is the index that value represents in some external structure.

func (ValIndexHeap) Len

func (h ValIndexHeap) Len() int

func (ValIndexHeap) Less

func (h ValIndexHeap) Less(i, j int) bool

func (*ValIndexHeap) Pop

func (h *ValIndexHeap) Pop() interface{}

func (*ValIndexHeap) Push

func (h *ValIndexHeap) Push(x interface{})

func (ValIndexHeap) Swap

func (h ValIndexHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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