Package org.encog.ml.ea.sort

Examples of org.encog.ml.ea.sort.SpeciesComparator


    if (list.size() == 0) {
      throw new EncogError(
          "Can't speciate, next generation contains no species.");
    }

    Collections.sort(list, new SpeciesComparator(this.owner));

    // best species gets at least one offspring
    if (list.get(0).getOffspringCount() == 0) {
      list.get(0).setOffspringCount(1);
    }
View Full Code Here

TOP

Related Classes of org.encog.ml.ea.sort.SpeciesComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.