Class NeatSelectorImpl<T extends Number & Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.neat.selection.NeatSelectorImpl<T>
- All Implemented Interfaces:
Selector<T>
public class NeatSelectorImpl<T extends Number & Comparable<T>>
extends Object
implements Selector<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.logging.log4j.Logger
private final NeatSelection
<T> private final RandomGenerator
private final SpeciesIdGenerator
-
Constructor Summary
ConstructorDescriptionNeatSelectorImpl
(RandomGenerator _randomGenerator, NeatSelection<T> _neatSelection, SpeciesIdGenerator _speciesIdGenerator, Selector<T> _speciesSelector) -
Method Summary
Modifier and TypeMethodDescriptioneliminateLowestPerformers
(AbstractEAConfiguration<T> eaConfiguration, List<Species<T>> allSpecies) select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> genotypes, List<T> fitnessScore) trimSpecies
(Species<T> species, Comparator<Individual<T>> comparator, int minSpeciesSize, float perSpeciesKeepRatio)
-
Field Details
-
logger
public static final org.apache.logging.log4j.Logger logger -
randomGenerator
-
neatSelection
-
speciesIdGenerator
-
speciesSelector
-
previousSpecies
-
-
Constructor Details
-
NeatSelectorImpl
public NeatSelectorImpl(RandomGenerator _randomGenerator, NeatSelection<T> _neatSelection, SpeciesIdGenerator _speciesIdGenerator, Selector<T> _speciesSelector)
-
-
Method Details
-
trimSpecies
protected Species<T> trimSpecies(Species<T> species, Comparator<Individual<T>> comparator, int minSpeciesSize, float perSpeciesKeepRatio) -
eliminateLowestPerformers
-
select
public Population<T> select(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> genotypes, List<T> fitnessScore)
-