C# Class AForge.Genetic.EliteSelection

Elite selection method.
Elite selection method selects specified amount of best chromosomes to the next generation.
Inheritance: ISelectionMethod
Datei anzeigen Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Public Methods

Method Description
ApplySelection ( List chromosomes, int size ) : void

Apply selection to the specified population.

Filters specified population keeping only specified amount of best chromosomes.

EliteSelection ( ) : System

Initializes a new instance of the EliteSelection class.

Method Details

ApplySelection() public method

Apply selection to the specified population.
Filters specified population keeping only specified amount of best chromosomes.
public ApplySelection ( List chromosomes, int size ) : void
chromosomes List Population, which should be filtered.
size int The amount of chromosomes to keep.
return void

EliteSelection() public method

Initializes a new instance of the EliteSelection class.
public EliteSelection ( ) : System
return System