Catalano.Evolutionary.Genetic.Selection
Class RouletteWheelSelection
- java.lang.Object
-
- Catalano.Evolutionary.Genetic.Selection.RouletteWheelSelection
-
- All Implemented Interfaces:
- ISelection
public class RouletteWheelSelection extends java.lang.Object implements ISelection
Roulette Wheel Selection.
-
-
Constructor Summary
Constructors Constructor and Description RouletteWheelSelection()Initializes a new instance of the RouletteWheelSelection class.RouletteWheelSelection(long seed)Initializes a new instance of the RouletteWheelSelection class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]Compute(java.util.List<IChromosome> chromosomes)Selection operator.
-
-
-
Constructor Detail
-
RouletteWheelSelection
public RouletteWheelSelection()
Initializes a new instance of the RouletteWheelSelection class.
-
RouletteWheelSelection
public RouletteWheelSelection(long seed)
Initializes a new instance of the RouletteWheelSelection class.- Parameters:
seed- Random seed.
-
-
Method Detail
-
Compute
public int[] Compute(java.util.List<IChromosome> chromosomes)
Description copied from interface:ISelectionSelection operator.- Specified by:
Computein interfaceISelection- Parameters:
chromosomes- Chromosomes.- Returns:
- Selected chromosomes.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG