Examples of SpeciesComparator


Examples of com.heatonresearch.aifh.evolutionary.sort.SpeciesComparator

        if (list.size() == 0) {
            throw new AIFHError(
                    "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

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
Copyright © 2018 www.massapi.com. 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.