Uses of Interface
net.bmahe.genetics4j.core.Individual
Packages that use Individual
Package
Description
-
Uses of Individual in net.bmahe.genetics4j.core
Classes in net.bmahe.genetics4j.core that implement IndividualModifier and TypeClassDescriptionfinal class
ImmutableIndividual<T extends Comparable<T>>
Immutable implementation ofIndividual
.Methods in net.bmahe.genetics4j.core that return IndividualModifier and TypeMethodDescriptionPopulation.getIndividual
(int index) Returns the individual at the specified index.PopulationIterator.next()
Returns the next individual in the population and advances the iterator position.static <U extends Comparable<U>>
Individual<U> Creates a new individual with the specified genotype and fitness.Methods in net.bmahe.genetics4j.core that return types with arguments of type IndividualMethods in net.bmahe.genetics4j.core with parameters of type IndividualModifier and TypeMethodDescriptionvoid
Population.add
(Individual<T> individual) Adds an individual to the population.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.Method parameters in net.bmahe.genetics4j.core with type arguments of type IndividualModifier and TypeMethodDescriptionstatic <U extends Comparable<U>>
Population<U> Population.of
(List<Individual<U>> individuals) Creates a new population from a list of individuals. -
Uses of Individual in net.bmahe.genetics4j.core.postevaluationprocess
Fields in net.bmahe.genetics4j.core.postevaluationprocess with type parameters of type IndividualModifier and TypeFieldDescriptionprivate BiFunction
<Individual<T>, Double, T> ImmutableFitnessSharing.Builder.scaleFitness
private final BiFunction
<Individual<T>, Double, T> ImmutableFitnessSharing.scaleFitness
Methods in net.bmahe.genetics4j.core.postevaluationprocess that return types with arguments of type IndividualModifier and TypeMethodDescriptionabstract BiFunction
<Individual<T>, Double, T> FitnessSharing.scaleFitness()
ImmutableFitnessSharing.scaleFitness()
Method parameters in net.bmahe.genetics4j.core.postevaluationprocess with type arguments of type IndividualModifier 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
Methods in net.bmahe.genetics4j.core.selection that return IndividualModifier 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) Methods in net.bmahe.genetics4j.core.selection that return types with arguments of type IndividualModifier and TypeMethodDescriptionprivate List
<Individual<T>> MultiTournamentsSelectionPolicyHandler.pickRandomCandidates
(RandomGenerator randomGenerator, List<Genotype> population, List<T> fitnessScore, int numCandidates) Methods in net.bmahe.genetics4j.core.selection with parameters of type IndividualModifier and TypeMethodDescriptionprotected Individual
<T> DoubleTournamentSelector.parsimonyPick
(Comparator<Individual<T>> parsimonyComparator, double parsimonyTournamentSize, Individual<T> first, Individual<T> second) Method parameters in net.bmahe.genetics4j.core.selection with type arguments of type IndividualModifier 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
Fields in net.bmahe.genetics4j.core.spec.selection with type parameters of type IndividualModifier 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
Methods in net.bmahe.genetics4j.core.spec.selection that return types with arguments of type IndividualModifier and TypeMethodDescriptionImmutableTournament.comparator()
Tournament.comparator()
ImmutableProportionalTournament.firstComparator()
ProportionalTournament.firstComparator()
abstract Comparator
<Individual<T>> DoubleTournament.parsimonyComparator()
ImmutableDoubleTournament.parsimonyComparator()
ImmutableProportionalTournament.secondComparator()
ProportionalTournament.secondComparator()
Method parameters in net.bmahe.genetics4j.core.spec.selection with type arguments of type IndividualModifier 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.Constructor parameters in net.bmahe.genetics4j.core.spec.selection with type arguments of type IndividualModifierConstructorDescriptionprivate
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
Methods in net.bmahe.genetics4j.core.util that return types with arguments of type IndividualModifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
Comparator<Individual<T>> IndividualUtils.fitnessBasedComparator
(AbstractEAConfiguration<T> eaConfiguration) -
Uses of Individual in net.bmahe.genetics4j.neat
Fields in net.bmahe.genetics4j.neat with type parameters of type IndividualModifier and TypeFieldDescriptionprivate final List
<Individual<T>> Species.ancestors
private final List
<Individual<T>> Species.members
Methods in net.bmahe.genetics4j.neat that return types with arguments of type IndividualModifier and TypeMethodDescriptionList
<Individual<T>> Species.getAncestors()
Returns the list of ancestors for this species.List
<Individual<T>> Species.getMembers()
Returns the list of current members in this species.Methods in net.bmahe.genetics4j.neat with parameters of type IndividualModifier and TypeMethodDescriptionvoid
Species.addAncestor
(Individual<T> individual) Adds an individual as an ancestor of this species.void
Species.addMember
(Individual<T> individual) Adds an individual as a member of this species.Method parameters in net.bmahe.genetics4j.neat with type arguments of type IndividualModifier and TypeMethodDescriptionvoid
Species.addAllMembers
(Collection<Individual<T>> individuals) Adds multiple individuals as members of this species.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) Constructor parameters in net.bmahe.genetics4j.neat with type arguments of type IndividualModifierConstructorDescriptionSpecies
(int _id, List<Individual<T>> _ancestors) Constructs a new species with the specified ID and founding ancestors. -
Uses of Individual in net.bmahe.genetics4j.neat.selection
Method parameters in net.bmahe.genetics4j.neat.selection with type arguments of type IndividualModifier and TypeMethodDescriptionNeatSelectorImpl.trimSpecies
(Species<T> species, Comparator<Individual<T>> comparator, int minSpeciesSize, float perSpeciesKeepRatio) Trims a species by removing lower-performing individuals while preserving minimum viable size. -
Uses of Individual in net.bmahe.genetics4j.neat.spec.selection
Fields in net.bmahe.genetics4j.neat.spec.selection with type parameters of type IndividualModifier 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
Methods in net.bmahe.genetics4j.neat.spec.selection that return types with arguments of type IndividualModifier and TypeMethodDescriptionImmutableNeatSelection.speciesPredicate()
Returns the predicate used to determine species membership.ImmutableNeatSelection.speciesPredicate()
Returns the predicate used to determine species membership.abstract BiPredicate
<Individual<T>, Individual<T>> NeatSelection.speciesPredicate()
Returns the predicate used to determine species membership.abstract BiPredicate
<Individual<T>, Individual<T>> NeatSelection.speciesPredicate()
Returns the predicate used to determine species membership.Method parameters in net.bmahe.genetics4j.neat.spec.selection with type arguments of type IndividualModifier and TypeMethodDescriptionstatic <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(float perSpeciesKeepRatio, BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) Creates a NEAT selection policy with custom keep ratio and specified parameters.static <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(float perSpeciesKeepRatio, BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) Creates a NEAT selection policy with custom keep ratio and specified parameters.static <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) Creates a NEAT selection policy with default keep ratio and specified parameters.static <U extends Comparable<U>>
NeatSelection<U> NeatSelection.of
(BiPredicate<Individual<U>, Individual<U>> speciesPredicate, SelectionPolicy speciesSelection) Creates a NEAT selection policy with default keep ratio and specified parameters.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.Constructor parameters in net.bmahe.genetics4j.neat.spec.selection with type arguments of type IndividualModifierConstructorDescriptionprivate
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
Methods in net.bmahe.genetics4j.samples.mixturemodel that return types with arguments of type IndividualModifier and TypeMethodDescriptionstatic Map
<Integer, Individual<FitnessVector<Float>>> ClusteringUtils.groupByNumClusters
(double[][] samplesDouble, EvolutionResult<FitnessVector<Float>> evolutionResult)