net.sf.amiba.evolve
Class EvolutionResult<T>
Object
EvolutionResult<T>
public class EvolutionResult<T>
- extends Object
This bean stores the result of the evolution process so far as a snapshot. This class is not
mutable.
It contains 2 types of information 1. General stats about the population, like average fitness
2.The best Individual, which in turn contains all the information pertaining to itself, like its
fitness which would be the best fitness in the population.
- Author:
- juber patel
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EvolutionResult
public EvolutionResult(double averageFitness,
Individual<T> bestIndividual)
getAverageFitness
public double getAverageFitness()
getBestIndividual
public Individual<T> getBestIndividual()
save
public void save(OutputStream out)
- save this EvolutionResult as XML to the given OutputStream
- Parameters:
out
- output stream