Uses of Interface
net.bmahe.genetics4j.core.Individual
Package
Description
-
Uses of Individual in net.bmahe.genetics4j.core
Modifier and TypeClassDescriptionfinal class
ImmutableIndividual<T extends Comparable<T>>
Immutable implementation ofIndividual
.Modifier and TypeMethodDescriptionPopulation.getIndividual
(int index) PopulationIterator.next()
static <U extends Comparable<U>>
Individual<U> Modifier and TypeMethodDescriptionvoid
Population.add
(Individual<T> individual) static <T extends Comparable<T>>
ImmutableIndividual<T> ImmutableIndividual.copyOf
(Individual<T> instance) Creates an immutable copy of aIndividual
value.final ImmutableIndividual.Builder
<T> ImmutableIndividual.Builder.from
(Individual<T> instance) Fill a builder with attribute values from the providedIndividual
instance.Modifier and TypeMethodDescriptionstatic <U extends Comparable<U>>
Population<U> Population.of
(List<Individual<U>> individuals) -
Uses of Individual in net.bmahe.genetics4j.core.postevaluationprocess
Modifier and TypeFieldDescriptionprivate BiFunction
<Individual<T>, Double, T> ImmutableFitnessSharing.Builder.scaleFitness
private final BiFunction
<Individual<T>, Double, T> ImmutableFitnessSharing.scaleFitness
Modifier and TypeMethodDescriptionabstract BiFunction
<Individual<T>, Double, T> FitnessSharing.scaleFitness()
ImmutableFitnessSharing.scaleFitness()
Modifier and TypeMethodDescriptionfinal ImmutableFitnessSharing.Builder
<T> ImmutableFitnessSharing.Builder.scaleFitness
(BiFunction<Individual<T>, Double, T> scaleFitness) Initializes the value for thescaleFitness
attribute.final ImmutableFitnessSharing
<T> ImmutableFitnessSharing.withScaleFitness
(BiFunction<Individual<T>, Double, T> value) Copy the current immutable object by setting a value for thescaleFitness
attribute. -
Uses of Individual in net.bmahe.genetics4j.core.selection
Modifier and TypeMethodDescriptionprotected Individual
<T> DoubleTournamentSelector.parsimonyPick
(Comparator<Individual<T>> parsimonyComparator, double parsimonyTournamentSize, Individual<T> first, Individual<T> second) protected Individual
<T> DoubleTournamentSelector.randomIndividual
(List<Genotype> population, List<T> fitnessScore) private Individual
<T> MultiTournamentsSelectionPolicyHandler.runTournament
(RandomGenerator randomGenerator, List<Tournament<T>> tournaments, List<Genotype> population, List<T> fitnessScore, int tournamentIndex) private Individual
<T> MultiTournamentsSelectionPolicyHandler.runTournament
(Tournament<T> tournament, List<Genotype> population, List<T> fitnessScore, List<Individual<T>> candidates) protected Individual
<T> DoubleTournamentSelector.selectForFitness
(AbstractEAConfiguration<T> eaConfiguration, Comparator<Individual<T>> fitnessComparator, int numCandidates, List<Genotype> population, List<T> fitnessScore) Modifier and TypeMethodDescriptionprivate List
<Individual<T>> MultiTournamentsSelectionPolicyHandler.pickRandomCandidates
(RandomGenerator randomGenerator, List<Genotype> population, List<T> fitnessScore, int numCandidates) Modifier and TypeMethodDescriptionprotected Individual
<T> DoubleTournamentSelector.parsimonyPick
(Comparator<Individual<T>> parsimonyComparator, double parsimonyTournamentSize, Individual<T> first, Individual<T> second) Modifier and TypeMethodDescriptionprotected Individual
<T> DoubleTournamentSelector.parsimonyPick
(Comparator<Individual<T>> parsimonyComparator, double parsimonyTournamentSize, Individual<T> first, Individual<T> second) protected Individual
<T> DoubleTournamentSelector.selectForFitness
(AbstractEAConfiguration<T> eaConfiguration, Comparator<Individual<T>> fitnessComparator, int numCandidates, List<Genotype> population, List<T> fitnessScore) -
Uses of Individual in net.bmahe.genetics4j.core.spec.selection
Modifier and TypeFieldDescriptionprivate Comparator
<Individual<T>> ImmutableTournament.Builder.comparator
private final Comparator
<Individual<T>> ImmutableTournament.comparator
private Comparator
<Individual<T>> ImmutableProportionalTournament.Builder.firstComparator
private final Comparator
<Individual<T>> ImmutableProportionalTournament.firstComparator
private Comparator
<Individual<T>> ImmutableDoubleTournament.Builder.parsimonyComparator
private final Comparator
<Individual<T>> ImmutableDoubleTournament.parsimonyComparator
private Comparator
<Individual<T>> ImmutableProportionalTournament.Builder.secondComparator
private final Comparator
<Individual<T>> ImmutableProportionalTournament.secondComparator
Modifier and TypeMethodDescriptionImmutableTournament.comparator()
Tournament.comparator()
ImmutableProportionalTournament.firstComparator()
ProportionalTournament.firstComparator()
abstract Comparator
<Individual<T>> DoubleTournament.parsimonyComparator()
ImmutableDoubleTournament.parsimonyComparator()
ImmutableProportionalTournament.secondComparator()
ProportionalTournament.secondComparator()
Modifier and TypeMethodDescriptionfinal Tournament.Builder
<T> ImmutableTournament.Builder.comparator
(Comparator<Individual<T>> comparator) Initializes the value for thecomparator
attribute.ImmutableProportionalTournament.Builder.firstComparator
(Comparator<Individual<T>> firstComparator) Initializes the value for thefirstComparator
attribute.static <U extends Comparable<U>>
DoubleTournament<U> DoubleTournament.of
(Tournament<U> fitnessTournament, Comparator<Individual<U>> parsimonyComparator, double parsimonyTournamentSize) static <T extends Comparable<T>>
ImmutableDoubleTournament<T> ImmutableDoubleTournament.of
(Tournament<T> fitnessTournament, Comparator<Individual<T>> parsimonyComparator, double parsimonyTournamentSize) Construct a new immutableDoubleTournament
instance.static <T extends Comparable<T>>
ProportionalTournament<T> ImmutableProportionalTournament.of
(int numCandidates, double proportionFirst, Comparator<Individual<T>> firstComparator, Comparator<Individual<T>> secondComparator) Construct a new immutableProportionalTournament
instance.static <T extends Comparable<T>>
ProportionalTournament<T> ProportionalTournament.of
(int numCandidates, double proportionFirst, Comparator<Individual<T>> firstComparator, Comparator<Individual<T>> secondComparator) static <U extends Comparable<U>>
Tournament<U> Tournament.of
(int numCandidates, Comparator<Individual<U>> comparator) ImmutableDoubleTournament.Builder.parsimonyComparator
(Comparator<Individual<T>> parsimonyComparator) Initializes the value for theparsimonyComparator
attribute.ImmutableProportionalTournament.Builder.secondComparator
(Comparator<Individual<T>> secondComparator) Initializes the value for thesecondComparator
attribute.final ImmutableTournament
<T> ImmutableTournament.withComparator
(Comparator<Individual<T>> value) Copy the current immutable object by setting a value for thecomparator
attribute.final ImmutableProportionalTournament
<T> ImmutableProportionalTournament.withFirstComparator
(Comparator<Individual<T>> value) Copy the current immutable object by setting a value for thefirstComparator
attribute.final ImmutableDoubleTournament
<T> ImmutableDoubleTournament.withParsimonyComparator
(Comparator<Individual<T>> value) Copy the current immutable object by setting a value for theparsimonyComparator
attribute.final ImmutableProportionalTournament
<T> ImmutableProportionalTournament.withSecondComparator
(Comparator<Individual<T>> value) Copy the current immutable object by setting a value for thesecondComparator
attribute.ModifierConstructorDescriptionprivate
ImmutableDoubleTournament
(Tournament<T> fitnessTournament, Comparator<Individual<T>> parsimonyComparator, double parsimonyTournamentSize) private
ImmutableDoubleTournament
(Tournament<T> fitnessTournament, Comparator<Individual<T>> parsimonyComparator, double parsimonyTournamentSize, boolean doFitnessFirst) private
ImmutableProportionalTournament
(int numCandidates, double proportionFirst, Comparator<Individual<T>> firstComparator, Comparator<Individual<T>> secondComparator) private
ImmutableProportionalTournament
(ImmutableProportionalTournament<T> original, int numCandidates, double proportionFirst, Comparator<Individual<T>> firstComparator, Comparator<Individual<T>> secondComparator) private
ImmutableTournament
(int numCandidates, Comparator<Individual<T>> comparator) -
Uses of Individual in net.bmahe.genetics4j.core.util
Modifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
Comparator<Individual<T>> IndividualUtils.fitnessBasedComparator
(AbstractEAConfiguration<T> eaConfiguration) -
Uses of Individual in net.bmahe.genetics4j.neat
Modifier and TypeFieldDescriptionprivate final List
<Individual<T>> Species.ancestors
private final List
<Individual<T>> Species.members
Modifier and TypeMethodDescriptionList
<Individual<T>> Species.getAncestors()
List
<Individual<T>> Species.getMembers()
Modifier and TypeMethodDescriptionvoid
Species.addAncestor
(Individual<T> individual) void
Species.addMember
(Individual<T> individual) Modifier and TypeMethodDescriptionvoid
Species.addAllMembers
(Collection<Individual<T>> individuals) static <T extends Comparable<T>>
List<Species<T>> NeatUtils.speciate
(RandomGenerator random, SpeciesIdGenerator speciesIdGenerator, List<Species<T>> seedSpecies, Population<T> population, BiPredicate<Individual<T>, Individual<T>> speciesPredicate) static <T extends Comparable<T>>
List<Species<T>> NeatUtils.speciate
(RandomGenerator random, SpeciesIdGenerator speciesIdGenerator, List<Species<T>> seedSpecies, Population<T> population, BiPredicate<Individual<T>, Individual<T>> speciesPredicate) -
Uses of Individual in net.bmahe.genetics4j.neat.selection
Modifier and TypeMethodDescriptionNeatSelectorImpl.trimSpecies
(Species<T> species, Comparator<Individual<T>> comparator, int minSpeciesSize, float perSpeciesKeepRatio) -
Uses of Individual in net.bmahe.genetics4j.neat.spec.selection
Modifier and TypeFieldDescriptionprivate BiPredicate
<Individual<T>, Individual<T>> ImmutableNeatSelection.Builder.speciesPredicate
private BiPredicate
<Individual<T>, Individual<T>> ImmutableNeatSelection.Builder.speciesPredicate
private final BiPredicate
<Individual<T>, Individual<T>> ImmutableNeatSelection.speciesPredicate
private final BiPredicate
<Individual<T>, Individual<T>> ImmutableNeatSelection.speciesPredicate
Modifier and TypeMethodDescriptionImmutableNeatSelection.speciesPredicate()
ImmutableNeatSelection.speciesPredicate()
abstract BiPredicate
<Individual<T>, Individual<T>> NeatSelection.speciesPredicate()
abstract BiPredicate
<Individual<T>, Individual<T>> NeatSelection.speciesPredicate()
Modifier and TypeMethodDescriptionstatic <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(float perSpeciesKeepRatio, BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) static <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(float perSpeciesKeepRatio, BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) static <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) static <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) final NeatSelection.Builder
<T> ImmutableNeatSelection.Builder.speciesPredicate
(BiPredicate<Individual<T>, Individual<T>> speciesPredicate) Initializes the value for thespeciesPredicate
attribute.final NeatSelection.Builder
<T> ImmutableNeatSelection.Builder.speciesPredicate
(BiPredicate<Individual<T>, Individual<T>> speciesPredicate) Initializes the value for thespeciesPredicate
attribute.final ImmutableNeatSelection
<T> ImmutableNeatSelection.withSpeciesPredicate
(BiPredicate<Individual<T>, Individual<T>> value) Copy the current immutable object by setting a value for thespeciesPredicate
attribute.final ImmutableNeatSelection
<T> ImmutableNeatSelection.withSpeciesPredicate
(BiPredicate<Individual<T>, Individual<T>> value) Copy the current immutable object by setting a value for thespeciesPredicate
attribute.ModifierConstructorDescriptionprivate
ImmutableNeatSelection
(float perSpeciesKeepRatio, int minSpeciesSize, BiPredicate<Individual<T>, Individual<T>> speciesPredicate, SelectionPolicy speciesSelection) private
ImmutableNeatSelection
(float perSpeciesKeepRatio, int minSpeciesSize, BiPredicate<Individual<T>, Individual<T>> speciesPredicate, SelectionPolicy speciesSelection) -
Uses of Individual in net.bmahe.genetics4j.samples.mixturemodel
Modifier and TypeMethodDescriptionstatic Map
<Integer, Individual<FitnessVector<Float>>> ClusteringUtils.groupByNumClusters
(double[][] samplesDouble, EvolutionResult<FitnessVector<Float>> evolutionResult)