Package com.heatonresearch.aifh.evolutionary.sort

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

TOP

Related Classes of com.heatonresearch.aifh.evolutionary.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.