Package org.deidentifier.arx.algorithm
Klasse GeneticAlgorithmSubpopulation
java.lang.Object
org.deidentifier.arx.algorithm.GeneticAlgorithmSubpopulation
Represents a subpopulation.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault constructorConstructor used to create an identical copy -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddIndividual(Transformation<?> individual) Adds an individual to the subpopulation.getIndividual(int index) Gets the individual at index.List<Transformation<?>> Return the list containing the individualsintGets the size of the subpopulation.voidmoveFittestIndividuals(GeneticAlgorithmSubpopulation other, int immigrationCount) Moves 'count' Individuals from this subpopulation to 'other'voidsetIndividual(int index, Transformation<?> individual) Replaces the individual at a certain indexvoidsort()Sorts the individuals descending by fitness, which means ascending in terms of information loss.
-
Konstruktordetails
-
GeneticAlgorithmSubpopulation
public GeneticAlgorithmSubpopulation()Default constructor -
GeneticAlgorithmSubpopulation
Constructor used to create an identical copy
-
-
Methodendetails
-
addIndividual
Adds an individual to the subpopulation.- Parameter:
individual-
-
getIndividual
Gets the individual at index.- Parameter:
index-- Gibt zurück:
-
individualCount
public int individualCount()Gets the size of the subpopulation.- Gibt zurück:
-
moveFittestIndividuals
Moves 'count' Individuals from this subpopulation to 'other'- Parameter:
other-count-
-
setIndividual
Replaces the individual at a certain index- Parameter:
index-individual-
-
getIndividuals
Return the list containing the individuals -
sort
public void sort()Sorts the individuals descending by fitness, which means ascending in terms of information loss.
-