gap
Class DefaultEvaluator

java.lang.Object
  |
  +--gap.DefaultEvaluator
All Implemented Interfaces:
Evaluator, java.io.Serializable

public abstract class DefaultEvaluator
extends java.lang.Object
implements Evaluator, java.io.Serializable

Author:
Pietro Berkes, Samuele Pedroni
See Also:
Serialized Form

Constructor Summary
DefaultEvaluator()
           
 
Method Summary
abstract  double eval(Executable progr)
          Test a single individual and compute its standarized fitness.
 double[] eval(Executable[] pop)
          Test all the individuals and compute their standarized fitness.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEvaluator

public DefaultEvaluator()
Method Detail

eval

public abstract double eval(Executable progr)
Test a single individual and compute its standarized fitness.

The standarized fitness is 0 for the best individual and bigger for all other individuals.


eval

public double[] eval(Executable[] pop)
Test all the individuals and compute their standarized fitness.

The standarized fitness is 0 for the best individual and bigger for all other individuals.

Specified by:
eval in interface Evaluator