|
Watchmaker Framework for Evolutionary Computation API (Version 0.7.1) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.uncommons.watchmaker.framework.PopulationData<T>
T - The type of evolved entity present in the population
that this data describes.public final class PopulationData<T>
Immutable data object containing statistics about the state of an evolved population and a reference to the fittest candidate solution in the population.
EvolutionObserver| Constructor Summary | |
|---|---|
PopulationData(T bestCandidate,
double bestCandidateFitness,
double meanFitness,
double fitnessStandardDeviation,
boolean naturalFitness,
int populationSize,
int eliteCount,
int generationNumber,
long elapsedTime)
|
|
| Method Summary | |
|---|---|
T |
getBestCandidate()
|
double |
getBestCandidateFitness()
|
long |
getElapsedTime()
Returns the amount of time (in milliseconds) since the start of the evolutionary algorithm's execution. |
int |
getEliteCount()
|
double |
getFitnessStandardDeviation()
Returns a statistical measure of variation in fitness scores within the population. |
int |
getGenerationNumber()
|
double |
getMeanFitness()
Returns the average fitness score of population members. |
int |
getPopulationSize()
|
boolean |
isNaturalFitness()
Indicates whether the fitness scores are natural or non-natural. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PopulationData(T bestCandidate,
double bestCandidateFitness,
double meanFitness,
double fitnessStandardDeviation,
boolean naturalFitness,
int populationSize,
int eliteCount,
int generationNumber,
long elapsedTime)
bestCandidate - The fittest candidate present in the population.bestCandidateFitness - The fitness score for the fittest candidate
in the population.meanFitness - The arithmetic mean of fitness scores for each member
of the population.fitnessStandardDeviation - A measure of the variation in fitness
scores.naturalFitness - True if higher fitness scores are better, false
otherwise.populationSize - The number of individuals in the population.eliteCount - The number of candidates preserved via elitism.generationNumber - The (zero-based) number of the last generation
that was processed.elapsedTime - The number of milliseconds since the start of the| Method Detail |
|---|
public T getBestCandidate()
getBestCandidateFitness()public double getBestCandidateFitness()
getBestCandidateFitness()public double getMeanFitness()
public double getFitnessStandardDeviation()
public boolean isNaturalFitness()
public int getPopulationSize()
public int getEliteCount()
public int getGenerationNumber()
public long getElapsedTime()
|
Watchmaker Framework for Evolutionary Computation API (Version 0.7.1) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||