public interface Selection
| Modifier and Type | Method and Description |
|---|---|
<T extends Chromosome> |
apply(T[] population)
Select a chromosome with replacement from the population based on their
fitness.
|
static Selection |
Rank()
Rank Selection.
|
static Selection |
RouletteWheel()
Roulette Wheel Selection, also called fitness proportionate selection.
|
static Selection |
ScaledRouletteWheel()
Scaled Roulette Wheel Selection.
|
static Selection |
Tournament(int size,
double probability)
Tournament Selection.
|
<T extends Chromosome> T apply(T[] population)
static Selection RouletteWheel()
static Selection ScaledRouletteWheel()
static Selection Rank()
static Selection Tournament(int size, double probability)
size - the size of tournament pool.probability - the best-player-wins probability.