Documentation of 'org.jgap.gp.impl.DefaultGPFitnessEvaluator' Java class
DefaultGPFitnessEvaluator
org.jgap.gp.impl

Class DefaultGPFitnessEvaluator

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IGPFitnessEvaluator


    public class DefaultGPFitnessEvaluator
    extends java.lang.Object
    implements IGPFitnessEvaluator, java.lang.Cloneable
    A default implementation of a fitness evaluator. This implementation is straight forward: a higher fitness value is seen as fitter.
    Since:
    3.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object clone() 
      int compareTo(java.lang.Object a_object) 
      boolean equals(java.lang.Object a_object) 
      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 greater than the second one.
      boolean isFitter(IGPProgram a_prog1, IGPProgram a_prog2) 
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultGPFitnessEvaluator

        public DefaultGPFitnessEvaluator()
    • 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 greater than the second one. Otherwise returns false
        Specified by:
        isFitter in interface IGPFitnessEvaluator
        Parameters:
        a_fitness_value1 - first fitness value
        a_fitness_value2 - second fitness value
        Returns:
        true: first fitness value greater than second
        Since:
        2.0 (until 1.1: input types int)
      • equals

        public boolean equals(java.lang.Object a_object)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo(java.lang.Object a_object)
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
        Returns:
        deep clone of this instance
        Since:
        3.2

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.