|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jenes.population.Population.Statistics
public final class Population.Statistics
The Population.Statistics
class is only responsible for storing statistics
about a population. As each population can contains legal and illegal individials, it holds
the individuals with the higher and lower fitness (a deep-cloning is maked to store these individuals so they don't
change if the source population does),
the average and deviation values both regard legal individuals and illegal ones.
Esamples of use are showed below.
Population.Statistics stat = a_population.getStatistics();
returns a new statistics object setted according to the specified population state.
Population.Statistics stat = new Population.Statistics(); a_population.updateStatistics(stat);
modifies the existing statistics according to the specified population state.
Method Summary | |
---|---|
Individual<T> |
getIllegalHighestIndividual()
Returns the highest illegal score individual of this population |
double |
getIllegalHighestScore()
Returns the highest illegal score of this population |
Individual<T> |
getIllegalLowestIndividual()
Returns the lowest illegal score individual of this population |
double |
getIllegalLowestScore()
Returns the lowest illegal score of this population |
double |
getIllegalScoreAvg()
Returns the average score of the illegal individual of this population |
double |
getIllegalScoreDev()
Returns the deviation score of the illegal individual of this population |
Individual<T> |
getLegalHighestIndividual()
Returns the highest legal score individual of this population |
double |
getLegalHighestScore()
Returns the highest legal score of this population |
Individual<T> |
getLegalLowestIndividual()
Returns the lowest legal score individual of this population |
double |
getLegalLowestScore()
Returns the lowest legal score of this population |
double |
getLegalScoreAvg()
Returns the average score of the legal individual of this population |
double |
getLegalScoreDev()
Returns the deviation score of the legal individual of this population |
int |
getNumOfIllegalIndividuals()
Provides the number of illegal individuals in the population |
int |
getNumOfIndividuals()
Provides the number of individuals in the population |
int |
getNumOfLegalIndividuals()
Returns the number of legal individuals in the population |
void |
update(Population<T> population)
Updates all its information about its population |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void update(Population<T> population)
population
- public final double getLegalScoreAvg()
public final double getLegalScoreDev()
public final double getLegalHighestScore()
public final Individual<T> getLegalHighestIndividual()
public final double getLegalLowestScore()
public final Individual<T> getLegalLowestIndividual()
public final double getIllegalScoreAvg()
public final double getIllegalScoreDev()
public final double getIllegalHighestScore()
public final Individual<T> getIllegalHighestIndividual()
public final double getIllegalLowestScore()
public final Individual<T> getIllegalLowestIndividual()
public final int getNumOfIndividuals()
public final int getNumOfLegalIndividuals()
public final int getNumOfIllegalIndividuals()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |