Click or drag to resize
Accord.NET (logo)

RankSelection. ApplySelection Method

Apply selection to the specified population.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public void ApplySelection(
	List<IChromosome> chromosomes,
	int size
)
Request Example View Source

Parameters

chromosomes
Type: System.Collections.Generic.List<IChromosome>
Population, which should be filtered.
size
Type: System.Int32
The amount of chromosomes to keep.

Implements

ISelectionMethod.ApplySelection(List<IChromosome>, Int32)
Remarks
Filters specified population keeping only those chromosomes, which won "roulette" game.
See Also