Home
last modified time | relevance | path

Searched refs:Chromosome (Results 1 – 14 of 14) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DListPopulation.java36 private List<Chromosome> chromosomes;
48 public ListPopulation (List<Chromosome> chromosomes, int populationLimit) { in ListPopulation()
72 this.chromosomes = new ArrayList<Chromosome>(populationLimit); in ListPopulation()
79 public void setChromosomes(List<Chromosome> chromosomes) { in setChromosomes()
87 public List<Chromosome> getChromosomes() { in getChromosomes()
95 public void addChromosome(Chromosome chromosome) { in addChromosome()
103 public Chromosome getFittestChromosome() { in getFittestChromosome()
105 Chromosome bestChromosome = this.chromosomes.get(0); in getFittestChromosome()
106 for (Chromosome chromosome : this.chromosomes) { in getFittestChromosome()
152 public Iterator<Chromosome> iterator() { in iterator()
DChromosome.java28 public abstract class Chromosome implements Comparable<Chromosome>,Fitness { class
64 public int compareTo(Chromosome another) { in compareTo()
75 protected boolean isSame(Chromosome another) { in isSame()
89 protected Chromosome findSameChromosome(Population population) { in findSameChromosome()
90 for (Chromosome anotherChr : population) { in findSameChromosome()
105 Chromosome sameChromosome = findSameChromosome(population); in searchForFitnessUpdate()
DChromosomePair.java27 private final Chromosome first;
30 private final Chromosome second;
38 public ChromosomePair(final Chromosome c1, final Chromosome c2) { in ChromosomePair()
49 public Chromosome getFirst() { in getFirst()
58 public Chromosome getSecond() { in getSecond()
DPopulation.java25 public interface Population extends Iterable<Chromosome> {
48 void addChromosome(Chromosome chromosome); in addChromosome()
54 Chromosome getFittestChromosome(); in getFittestChromosome()
DBinaryMutation.java35 public Chromosome mutate(Chromosome original) { in mutate()
48 Chromosome newChrom = origChrom.newFixedLengthChromosome(newRepr); in mutate()
DTournamentSelection.java72 private Chromosome tournament(ListPopulation population) { in tournament()
84 List<Chromosome> chromosomes = new ArrayList<Chromosome> (population.getChromosomes()); in tournament()
DMutationPolicy.java32 Chromosome mutate(Chromosome original); in mutate()
DCrossoverPolicy.java34 ChromosomePair crossover(Chromosome first, Chromosome second); in crossover()
DRandomKeyMutation.java40 public Chromosome mutate(Chromosome original) { in mutate()
DElitisticListPopulation.java47 …public ElitisticListPopulation(List<Chromosome> chromosomes, int populationLimit, double elitismRa… in ElitisticListPopulation()
77 List<Chromosome> oldChromosomes = this.getChromosomes(); in nextGeneration()
DOnePointCrossover.java70 public ChromosomePair crossover(Chromosome first, Chromosome second) { in crossover()
DAbstractListChromosome.java31 public abstract class AbstractListChromosome<T> extends Chromosome {
DBinaryChromosome.java76 protected boolean isSame(Chromosome another) { in isSame()
DRandomKey.java149 protected boolean isSame(Chromosome another) { in isSame()