|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlio.misc.Statistics
public class Statistics
This class computes statistics concerning with the search being carried out. It provides methods to access to each data independently and can format those data into a String.
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
void |
finish()
Use this method to show the process of collecting statistics has finished, mainly for timing purposes |
double |
getBestFitness()
Returns the best fitness currently found. |
java.lang.Double[] |
getbestFitnessTrace()
Return an array with the best value found on each generation/iteration. |
Individual |
getBestIndividual()
|
java.lang.Double[] |
getConvergenceVelocity()
Compute convergence velocity following the measure proposed in Schwefel (1988) |
LiOResourceDefinition |
getDefinition()
Return a LiOResDescription object with the information of each object. |
java.lang.Double[] |
getEvaluationsTrace()
Return an array with the number of evaluations performed on each generation/iteration. |
int |
getNumEvalsWithoutImproving()
Getter for property numEvalsWithoutImproving. |
double |
getNumEvaluations()
Returns the current number of evaluations. |
double |
getNumEvaluationsBest()
Returns number of evaluations when the best individual was found. |
double |
getNumGenerations()
Returns the current number of iterations. |
double |
getNumGenerationsBest()
Returns number of generations when the best individual was found. |
int |
getNumGenerationsWithoutImproving()
Getter for property numGenerationsWithoutImproving. |
double |
getNumIterations()
Returns the current number of iterations. |
double |
getNumIterationsBest()
Returns number of iterations when the best individual was found. |
double |
getTime()
Returns time elapsed from the beginning of the search. |
double |
getTimeBest()
Returns the time elapsed since the beginning of the search until the best individual was found. |
void |
init()
Reset statistics. |
void |
newEvaluation(Individual individual)
Makes and accounts a new evaluation. |
void |
newEvaluation(Individual individual,
double value)
Accounts a new evaluation. |
void |
newGeneration()
It's the same as newIteration, but allows clarity when working with population-based algorithms. |
void |
newIteration()
Registers iterations when working when iterative algorithms. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public void init()
public void newEvaluation(Individual individual)
individual
- Individual being evaluated.public void newEvaluation(Individual individual, double value)
individual
- Individual evaluated.value
- Fitness value of the individual.public void newIteration()
public void newGeneration()
public void finish()
public double getBestFitness()
public double getNumEvaluations()
public double getNumEvaluationsBest()
public double getNumIterations()
public double getNumIterationsBest()
public double getNumGenerations()
public double getNumGenerationsBest()
public double getTime()
public double getTimeBest()
public java.lang.Double[] getConvergenceVelocity()
public java.lang.Double[] getbestFitnessTrace()
public java.lang.Double[] getEvaluationsTrace()
public LiOResourceDefinition getDefinition()
getDefinition
in interface LiOResource
public int getNumEvalsWithoutImproving()
public int getNumGenerationsWithoutImproving()
public Individual getBestIndividual()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |