Class Population<T>
java.lang.Object
org.episteme.natural.computing.ai.evolutionary.Population<T>
- All Implemented Interfaces:
Iterable<Chromosome<T>>
Represents a generation of chromosomes.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionPopulation(List<Chromosome<T>> chromosomes) Population(List<Chromosome<T>> chromosomes, int generation) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
Population
-
Population
-
-
Method Details
-
getFittest
-
size
public int size() -
get
-
getGeneration
public int getGeneration() -
stream
-
iterator
-
sort
public void sort()Sorts the population by fitness descending (best first).
-