Click or drag to resize
Accord.NET (logo)

EliteSelectionApplySelection 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.GenericListIChromosome
Population, which should be filtered.
size
Type: SystemInt32
The amount of chromosomes to keep.

Implements

ISelectionMethodApplySelection(ListIChromosome, Int32)
Remarks
Filters specified population keeping only specified amount of best chromosomes.
See Also