ec.simple
Class SimpleStatistics
java.lang.Object
|
+--ec.Statistics
|
+--ec.simple.SimpleStatistics
- Direct Known Subclasses:
- KozaShortStatistics, KozaStatistics
- public class SimpleStatistics
- extends Statistics
A basic Statistics class suitable for simple problem applications.
SimpleStatistics prints out the best individual, per subpopulation,
each generation. At the end of a run, it also prints out the best
individual of the run. SimpleStatistics outputs this data to a log
which may either be a provided file or stdout.
Parameters
base.file
String (a filename), or nonexistant (signifies stdout) |
(the log for statistics) |
- See Also:
- Serialized Form
Methods inherited from class ec.Statistics |
postBreedingStatistics,
postCheckpointStatistics,
postInitializationStatistics,
postPostBreedingExchangeStatistics,
postPreBreedingExchangeStatistics,
preBreedingStatistics,
preCheckpointStatistics,
preEvaluationStatistics,
preInitializationStatistics,
prePostBreedingExchangeStatistics,
prePreBreedingExchangeStatistics |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
P_STATISTICS_FILE
public static java.lang.String P_STATISTICS_FILE
- log file parameter
statisticslog
public int statisticslog
- The Statistics' log
best_of_run
public Individual best_of_run
- The best individual we've found so far
SimpleStatistics
public SimpleStatistics()
setup
public void setup(EvolutionState state,
Parameter base)
- Description copied from interface: Setup
- Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
If an ancestor implements this method, be sure to call
super.setup(state,base); before you do anything else.
postEvaluationStatistics
public void postEvaluationStatistics(EvolutionState state)
- Logs the best individual of the generation.
- Overrides:
- postEvaluationStatistics in class Statistics
finalStatistics
public void finalStatistics(EvolutionState state,
int result)
- Logs the best individual of the run.
- Overrides:
- finalStatistics in class Statistics