org.jgap
Class DeltaFitnessEvaluator

java.lang.Object
  extended byorg.jgap.DeltaFitnessEvaluator
All Implemented Interfaces:
FitnessEvaluator

public class DeltaFitnessEvaluator
extends java.lang.Object
implements FitnessEvaluator

An implementation of a fitness evaluator interpreting the fitness as delta value

Since:
2.0
Author:
Klaus Meffert

Constructor Summary
DeltaFitnessEvaluator()
           
 
Method Summary
 boolean isFitter(double a_fitness_value1, double a_fitness_value2)
          Compares the first given fitness value with the second and returns true if the first one is smaller than the second one.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeltaFitnessEvaluator

public DeltaFitnessEvaluator()
Method Detail

isFitter

public boolean isFitter(double a_fitness_value1,
                        double a_fitness_value2)
Compares the first given fitness value with the second and returns true if the first one is smaller than the second one. Otherwise returns false

Specified by:
isFitter in interface FitnessEvaluator
Parameters:
a_fitness_value1 - first fitness value
a_fitness_value2 - second fitness value
Returns:
true: first fitness value smaller than second
Since:
2.0 (until 1.1: input types int)