|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--ec.Statistics
|
+--ec.simple.SimpleShortStatistics
A Simple-style statistics generator, intended to be easily parseable with awk or other Unix tools. Prints fitness information, one generation (or pseudo-generation) per line. If gather-full is true, then timing information, number of nodes and depths of trees, etc. are also given. No final statistics information is given.
Each line represents a single generation. The first items on a line are always:
Then the following items appear, per subpopulation:
Parameters
| base.file String (a filename), or nonexistant (signifies stdout) |
(the log for statistics) |
| base.gather-full bool = true or false (default) |
(should we full statistics on individuals (will run slower, though the slowness is due to off-line processing that won't mess up timings) |
| Field Summary | |
Individual |
best_of_run
The best individual we've found so far |
Individual[] |
best_of_run_a
|
boolean |
doFull
|
long |
lastTime
|
long |
lastUsage
|
long[] |
lengths
|
static java.lang.String |
P_FULL
|
static java.lang.String |
P_STATISTICS_FILE
log file parameter |
int |
statisticslog
The Statistics' log |
| Fields inherited from class ec.Statistics |
children, P_CHILD, P_NUMCHILDREN |
| Constructor Summary | |
SimpleShortStatistics()
|
|
| Method Summary | |
protected 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 |
postBreedingStatistics(EvolutionState state)
Called immediately after breeding occurs. |
void |
postEvaluationStatistics(EvolutionState state)
Called immediately after evaluation occurs. |
void |
postInitializationStatistics(EvolutionState state)
Called immediately after population initialization occurs. |
void |
preBreedingStatistics(EvolutionState state)
Called immediately before breeding occurs. |
void |
preEvaluationStatistics(EvolutionState state)
Called immediately before evaluation occurs. |
void |
preInitializationStatistics(EvolutionState state)
Called immediately before population initialization occurs. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String P_STATISTICS_FILE
public int statisticslog
public Individual best_of_run
public static java.lang.String P_FULL
public boolean doFull
public Individual[] best_of_run_a
public long[] lengths
public long lastTime
public long lastUsage
| Constructor Detail |
public SimpleShortStatistics()
| Method Detail |
public void setup(EvolutionState state,
Parameter base)
Setupsetup in class Statisticspublic void preInitializationStatistics(EvolutionState state)
StatisticspreInitializationStatistics in class Statisticspublic void postInitializationStatistics(EvolutionState state)
StatisticspostInitializationStatistics in class Statisticspublic void preBreedingStatistics(EvolutionState state)
StatisticspreBreedingStatistics in class Statisticspublic void postBreedingStatistics(EvolutionState state)
StatisticspostBreedingStatistics in class Statisticspublic void preEvaluationStatistics(EvolutionState state)
StatisticspreEvaluationStatistics in class Statisticsprotected void _postEvaluationStatistics(EvolutionState state)
public void postEvaluationStatistics(EvolutionState state)
StatisticspostEvaluationStatistics in class Statistics
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||