Documentation of 'org.encog.ml.ea.sort.SpeciesComparator' Java class
SpeciesComparator
org.encog.ml.ea.sort

Class SpeciesComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<Species>


    public class SpeciesComparator
    extends java.lang.Object
    implements java.util.Comparator<Species>, java.io.Serializable
    This comparator is used to compare two species. This is done by comparing the scores of the two leaders.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(Species sp1, Species sp2)
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • SpeciesComparator

        public SpeciesComparator(EvolutionaryAlgorithm theTraining)
        Create a species comparator.
        Parameters:
        theTraining - The trainer.
    • Method Detail

      • compare

        public int compare(Species sp1,
                           Species sp2)
        Specified by:
        compare in interface java.util.Comparator<Species>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.