selection

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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