Documentation of 'org.jgap.DeltaFitnessEvaluator' Java class
DeltaFitnessEvaluator
org.jgap

Class DeltaFitnessEvaluator

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, FitnessEvaluator, ICloneable


    public class DeltaFitnessEvaluator
    extends java.lang.Object
    implements FitnessEvaluator, ICloneable, java.lang.Comparable
    An implementation of a fitness evaluator interpreting the fitness as delta value.
    Since:
    2.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_other) 
      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.
      boolean isFitter(IChromosome a_chrom1, IChromosome a_chrom2) 
      • 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)
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in interface ICloneable
        Overrides:
        clone in class java.lang.Object
        Returns:
        deep clone of this instance
        Since:
        3.2
      • compareTo

        public int compareTo(java.lang.Object a_other)
        Specified by:
        compareTo in interface java.lang.Comparable
        Parameters:
        a_other - sic
        Returns:
        as always
        Since:
        3.2

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.