Class Population<T>

java.lang.Object
org.episteme.natural.computing.ai.evolutionary.Population<T>
All Implemented Interfaces:
Iterable<Chromosome<T>>

public class Population<T> extends Object implements Iterable<Chromosome<T>>
Represents a generation of chromosomes.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

  • Method Details

    • getFittest

      public Chromosome<T> getFittest()
    • size

      public int size()
    • get

      public Chromosome<T> get(int index)
    • getGeneration

      public int getGeneration()
    • stream

      public Stream<Chromosome<T>> stream()
    • iterator

      public Iterator<Chromosome<T>> iterator()
      Specified by:
      iterator in interface Iterable<T>
    • sort

      public void sort()
      Sorts the population by fitness descending (best first).