org.primordion.ealontro.gp
Class XhKozaStatistics
java.lang.Object
ec.Statistics
ec.gp.koza.KozaStatistics
org.primordion.ealontro.gp.XhKozaStatistics
- All Implemented Interfaces:
- java.io.Serializable, ec.Setup, ec.Singleton, ec.steadystate.SteadyStateStatisticsForm
- public class XhKozaStatistics
- extends ec.gp.koza.KozaStatistics
Generates Koza-style statistics, including an XML file that contains the best solution found.
The XML file can be used as CompositeStructureHierarchy.xml in a Xholon application.
- Since:
- 0.3 (Created on May 17, 2006)
- Author:
- Ken Webb
- See Also:
- Serialized Form
Fields inherited from class ec.gp.koza.KozaStatistics |
best_of_run, P_COMPRESS, P_FULL, P_STATISTICS_FILE, statisticslog |
Fields inherited from class ec.Statistics |
children, P_CHILD, P_NUMCHILDREN |
Methods inherited from class ec.gp.koza.KozaStatistics |
individualsEvaluatedStatistics, postBreedingStatistics, postInitializationStatistics, preBreedingStatistics, preEvaluationStatistics, preInitializationStatistics, setup |
Methods inherited from class ec.Statistics |
individualsBredStatistics, postCheckpointStatistics, postInitialEvaluationStatistics, postPostBreedingExchangeStatistics, postPreBreedingExchangeStatistics, preCheckpointStatistics, preInitialEvaluationStatistics, prePostBreedingExchangeStatistics, prePreBreedingExchangeStatistics |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ec.steadystate.SteadyStateStatisticsForm |
individualsBredStatistics, postInitialEvaluationStatistics, preInitialEvaluationStatistics |
XhKozaStatistics
public XhKozaStatistics()
getWorstFitnessThisGeneration
public float getWorstFitnessThisGeneration()
- Get the worst fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.
- Returns:
- Worst fitness.
getAverageFitnessThisGeneration
public float getAverageFitnessThisGeneration()
- Get the average fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.
- Returns:
- Average fitness.
getBestFitnessThisGeneration
public float getBestFitnessThisGeneration()
- Get the best fitness (ECJ standardized fitness = ECJ raw fitness) of this generation.
- Returns:
- Best fitness.
postEvaluationStatistics
public void postEvaluationStatistics(ec.EvolutionState state)
setCshFilePath
public static void setCshFilePath(java.lang.String modelName)
- Set the CompositeStructureHierarchy.xml file path, given the name of the model.
- Parameters:
modelName
- Model name (ex: ./config/ealontro/CartCentering/EcjCartCentering_xhn.xml)
finalStatistics
public void finalStatistics(ec.EvolutionState state,
int result)