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

Class SortGenomesForSpecies

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


    public class SortGenomesForSpecies
    extends java.lang.Object
    implements java.util.Comparator<Genome>, java.io.Serializable
    Sort the gnomes for species. Sort first by score, second by birth generation. This favors younger genomes if scores are equal.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(Genome g1, Genome g2)
      • 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

      • SortGenomesForSpecies

        public SortGenomesForSpecies(EvolutionaryAlgorithm theTrain)
        Construct the comparator.
        Parameters:
        theTrain - The trainer.
    • Method Detail

      • compare

        public int compare(Genome g1,
                           Genome g2)
        Specified by:
        compare in interface java.util.Comparator<Genome>

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.