net.sf.amiba.evolve
Class EvolutionResult<T>

Object
  extended by 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

Constructor Summary
EvolutionResult(double averageFitness, Individual<T> bestIndividual)
           
 
Method Summary
 double getAverageFitness()
           
 Individual<T> getBestIndividual()
           
 void save(OutputStream out)
          save this EvolutionResult as XML to the given OutputStream
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvolutionResult

public EvolutionResult(double averageFitness,
                       Individual<T> bestIndividual)
Method Detail

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