public class Statistics<G extends Gene<?,G>,C extends Comparable<? super C>> extends Object implements Immutable, XMLSerializable
Population
.Modifier and Type | Class and Description |
---|---|
static class |
Statistics.Builder<G extends Gene<?,G>,C extends Comparable<? super C>>
Builder for the Statistics class.
|
static class |
Statistics.Calculator<G extends Gene<?,G>,C extends Comparable<? super C>>
Class for calculating the statistics.
|
static class |
Statistics.Time
Class which holds time statistic values.
|
Modifier and Type | Field and Description |
---|---|
protected double |
_ageMean |
protected double |
_ageVariance |
protected Phenotype<G,C> |
_best |
protected int |
_generation |
protected int |
_invalid |
protected int |
_killed |
protected Optimize |
_optimize |
protected int |
_samples |
protected Phenotype<G,C> |
_worst |
Modifier | Constructor and Description |
---|---|
protected |
Statistics(Optimize optimize,
int generation,
Phenotype<G,C> best,
Phenotype<G,C> worst,
int samples,
double ageMean,
double ageVariance,
int killed,
int invalid)
Evaluates statistic values from a given population.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getAgeMean()
Return the average (mean) age of the individuals of the aggregated
population.
|
double |
getAgeVariance()
Return the age variance of the individuals of the aggregated population.
|
C |
getBestFitness()
Return the best population fitness.
|
Phenotype<G,C> |
getBestPhenotype()
Return the best population Phenotype.
|
int |
getGeneration()
Return the generation of this statistics.
|
int |
getInvalid()
Return the number of invalid individuals.
|
int |
getKilled()
Return the number of killed individuals.
|
Optimize |
getOptimize()
Return the optimize strategy of the GA.
|
int |
getSamples()
Return the number of samples this statistics has aggregated.
|
Statistics.Time |
getTime()
Return the time statistic object which contains the durations of the
different GA execution steps.
|
C |
getWorstFitness()
Return the worst population fitness.
|
Phenotype<G,C> |
getWorstPhenotype()
Return the worst population Phenotype.
|
int |
hashCode() |
String |
toString() |
protected final int _generation
protected final int _samples
protected final double _ageMean
protected final double _ageVariance
protected final int _killed
protected final int _invalid
public Optimize getOptimize()
public int getGeneration()
public Statistics.Time getTime()
public Phenotype<G,C> getBestPhenotype()
public Phenotype<G,C> getWorstPhenotype()
public C getBestFitness()
public C getWorstFitness()
public int getSamples()
public double getAgeMean()
public double getAgeVariance()
public int getInvalid()
public int getKilled()
© 2007-2014 Franz Wilhelmstötter (2014-03-07 19:35)