Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RouletteWheel ¶
func RouletteWheel[T any]() engine.SelectionFunc[T]
RouletteWheel returns a SelectionFunc that performs roulette wheel (fitness proportionate) selection. Note: This implementation requires all fitness values to be positive.
func Tournament ¶
func Tournament[T any](tournamentSize int) engine.SelectionFunc[T]
Tournament returns a SelectionFunc that performs tournament selection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.