public class SimpleShortStatistics extends Statistics
Each line represents a single generation. The first items on a line are always:
Then, (if do-subpops) the following items appear, once per each subpopulation:
Then the following items appear, for the whole population:
Parameters
base.file String (a filename), or nonexistant (signifies stdout) |
(the log for statistics) |
base.gzip boolean |
(whether or not to compress the file (.gz suffix added) |
base.modulus integer >= 1 (default) |
(How often (in generations) should we print a statistics line?) |
base.do-time bool = true or false (default) |
(print timing information?) |
base.do-size bool = true or false (default) |
(print sizing information?) |
base.do-subpops bool = true or false (default) |
(print information on a per-subpop basis as well as per-population?) |
Modifier and Type | Field and Description |
---|---|
Individual[] |
bestOfGeneration |
Individual[] |
bestSoFar |
boolean |
doSize |
boolean |
doSubpops |
boolean |
doTime |
long |
lastTime |
int |
modulus |
static java.lang.String |
P_COMPRESS |
static java.lang.String |
P_DO_SIZE |
static java.lang.String |
P_DO_SUBPOPS |
static java.lang.String |
P_DO_TIME |
static java.lang.String |
P_FULL |
static java.lang.String |
P_STATISTICS_FILE |
static java.lang.String |
P_STATISTICS_MODULUS |
int |
statisticslog |
double[] |
totalFitnessThisGen |
long[] |
totalIndsSoFar |
long[] |
totalIndsThisGen |
long[] |
totalSizeSoFar |
long[] |
totalSizeThisGen |
children, P_CHILD, P_MUZZLE, P_NUMCHILDREN, P_SILENT, P_SILENT_FILE, P_SILENT_PRINT, silentFile, silentPrint
Constructor and Description |
---|
SimpleShortStatistics() |
Modifier and Type | Method and Description |
---|---|
protected void |
gatherExtraPopStatistics(EvolutionState state,
int subpop) |
protected void |
gatherExtraSubpopStatistics(EvolutionState state,
int subpop,
int individual) |
Individual[] |
getBestSoFar() |
void |
postBreedingStatistics(EvolutionState state)
GENERATIONAL: Called immediately after breeding occurs.
|
void |
postEvaluationStatistics(EvolutionState state)
Prints out the statistics, but does not end with a println --
this lets overriding methods print additional statistics on the same line
|
void |
postInitializationStatistics(EvolutionState state)
GENERATIONAL: Called immediately after population initialization occurs.
|
void |
preBreedingStatistics(EvolutionState state)
GENERATIONAL: Called immediately before breeding occurs.
|
void |
preEvaluationStatistics(EvolutionState state)
GENERATIONAL: Called immediately before evaluation occurs.
|
void |
preInitializationStatistics(EvolutionState state)
Called immediately before population initialization occurs.
|
protected void |
prepareStatistics(EvolutionState state) |
protected void |
printExtraPopStatisticsAfter(EvolutionState state) |
protected void |
printExtraPopStatisticsBefore(EvolutionState state) |
protected void |
printExtraSubpopStatisticsAfter(EvolutionState state,
int subpop) |
protected void |
printExtraSubpopStatisticsBefore(EvolutionState state,
int subpop) |
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
|
enteringInitialPopulationStatistics, enteringSteadyStateStatistics, finalStatistics, generationBoundaryStatistics, individualsBredStatistics, individualsEvaluatedStatistics, postCheckpointStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preCheckpointStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatistics
public static final java.lang.String P_STATISTICS_MODULUS
public static final java.lang.String P_COMPRESS
public static final java.lang.String P_FULL
public static final java.lang.String P_DO_SIZE
public static final java.lang.String P_DO_TIME
public static final java.lang.String P_DO_SUBPOPS
public static final java.lang.String P_STATISTICS_FILE
public int statisticslog
public int modulus
public boolean doSize
public boolean doTime
public boolean doSubpops
public Individual[] bestSoFar
public long[] totalSizeSoFar
public long[] totalIndsSoFar
public long[] totalIndsThisGen
public long[] totalSizeThisGen
public double[] totalFitnessThisGen
public Individual[] bestOfGeneration
public long lastTime
public void setup(EvolutionState state, Parameter base)
Setup
setup
in interface Setup
setup
in class Statistics
public Individual[] getBestSoFar()
public void preInitializationStatistics(EvolutionState state)
Statistics
preInitializationStatistics
in class Statistics
public void postInitializationStatistics(EvolutionState state)
Statistics
postInitializationStatistics
in class Statistics
public void preBreedingStatistics(EvolutionState state)
Statistics
preBreedingStatistics
in class Statistics
public void postBreedingStatistics(EvolutionState state)
Statistics
postBreedingStatistics
in class Statistics
public void preEvaluationStatistics(EvolutionState state)
Statistics
preEvaluationStatistics
in class Statistics
protected void prepareStatistics(EvolutionState state)
protected void gatherExtraSubpopStatistics(EvolutionState state, int subpop, int individual)
protected void printExtraSubpopStatisticsBefore(EvolutionState state, int subpop)
protected void printExtraSubpopStatisticsAfter(EvolutionState state, int subpop)
protected void gatherExtraPopStatistics(EvolutionState state, int subpop)
protected void printExtraPopStatisticsBefore(EvolutionState state)
protected void printExtraPopStatisticsAfter(EvolutionState state)
public void postEvaluationStatistics(EvolutionState state)
postEvaluationStatistics
in class Statistics