|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jgap.audit.Evaluator
public class Evaluator
Gathers statistical data and returns them on request.
| Nested Class Summary | |
|---|---|
class |
Evaluator.ChromosomeData
|
class |
Evaluator.GenotypeData
Genotype data for one single run |
class |
Evaluator.GenotypeDataAvg
Averaged genotype data (computed over all runs of a permutation) |
| Constructor Summary | |
|---|---|
Evaluator(PermutingConfiguration a_conf)
|
|
| Method Summary | |
|---|---|
protected void |
addRunNumber(int a_permutation,
int a_run)
|
KeyedValues2D |
calcAvgFitness(int a_permutation)
Calculates the average fitness value curve for a given permutation. |
protected void |
calcAvgFitnessHelper(int a_permutation,
KeyedValues2D result)
|
KeyedValues2D |
calcAvgFitnessImpr(int a_permutation)
Calculates average fitness value improvement per generation. |
Evaluator.GenotypeDataAvg |
calcPerformance(int a_permutation)
Calculates performance metrics for a given permutation and run stored before with storeGenotype, like: average fitness, maximum fitness... |
protected java.lang.Object |
createKey(int a_permutation,
int a_run)
|
KeyedValues2D |
getData()
|
java.util.List<Evaluator.GenotypeDataAvg> |
getGenotypeAverageData()
|
int |
getNumberOfRuns(int a_permutation)
|
java.lang.Number |
getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
|
java.lang.Number |
getValue(int a_permutation,
int a_run,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
|
boolean |
hasNext()
|
Configuration |
next()
|
Evaluator.GenotypeData |
retrieveGenotype(int a_permutation,
int a_run)
|
void |
setValue(double a_value,
java.lang.Comparable a_rowKey,
java.lang.Comparable a_columnKey)
|
void |
setValue(int a_permutation,
int a_run,
double a_value,
java.lang.Comparable a_rowKey,
java.lang.Comparable a_columnKey)
Sets a specific value. |
void |
storeGenotype(int a_permutation,
int a_run,
Genotype a_genotype)
Stores information contained in the given genotype. |
void |
storePopulation(int a_permutation,
int a_run,
Population a_pop)
Stores information contained in the given genotype. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Evaluator(PermutingConfiguration a_conf)
| Method Detail |
|---|
public boolean hasNext()
public Configuration next()
throws InvalidConfigurationException
InvalidConfigurationException
public void setValue(double a_value,
java.lang.Comparable a_rowKey,
java.lang.Comparable a_columnKey)
public java.lang.Number getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
public void setValue(int a_permutation,
int a_run,
double a_value,
java.lang.Comparable a_rowKey,
java.lang.Comparable a_columnKey)
a_permutation - inta_run - inta_value - doublea_rowKey - Comparablea_columnKey - Comparable
protected void addRunNumber(int a_permutation,
int a_run)
public java.lang.Number getValue(int a_permutation,
int a_run,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
public KeyedValues2D getData()
protected java.lang.Object createKey(int a_permutation,
int a_run)
public KeyedValues2D calcAvgFitness(int a_permutation)
a_permutation - -1 to use all permutations
protected void calcAvgFitnessHelper(int a_permutation,
KeyedValues2D result)
public KeyedValues2D calcAvgFitnessImpr(int a_permutation)
a_permutation - int
public int getNumberOfRuns(int a_permutation)
a_permutation - the permutation to determine the number of runs for
public void storeGenotype(int a_permutation,
int a_run,
Genotype a_genotype)
a_permutation - inta_run - index of the run proceeded for the given genotypea_genotype - the genotype holding the population of chromosomes
public void storePopulation(int a_permutation,
int a_run,
Population a_pop)
a_permutation - inta_run - index of the run proceeded for the given genotypea_pop - the population holding the relevant chromosomes
public Evaluator.GenotypeData retrieveGenotype(int a_permutation,
int a_run)
public Evaluator.GenotypeDataAvg calcPerformance(int a_permutation)
a_permutation - the permutation to compute the performance metrics
for
public java.util.List<Evaluator.GenotypeDataAvg> getGenotypeAverageData()
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||