Catalano.Evolutionary.Genetic.Selection
Class RandomSelection
- java.lang.Object
-
- Catalano.Evolutionary.Genetic.Selection.RandomSelection
-
- All Implemented Interfaces:
- IRealCodedSelection, ISelection
public class RandomSelection extends java.lang.Object implements ISelection, IRealCodedSelection
-
-
Constructor Summary
Constructors Constructor and Description RandomSelection(java.util.List<ISelection> selection)Initializes a new instance of the ElitismSelection class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int[]Compute(double[] fitness)int[]Compute(java.util.List<IChromosome> chromosomes)Selection operator.
-
-
-
Constructor Detail
-
RandomSelection
public RandomSelection(java.util.List<ISelection> selection)
Initializes a new instance of the ElitismSelection class.- Parameters:
selection- List of selection operators.
-
-
Method Detail
-
Compute
public int[] Compute(double[] fitness)
- Specified by:
Computein interfaceIRealCodedSelection
-
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