Package com.heatonresearch.aifh.genetic.genome

Examples of com.heatonresearch.aifh.genetic.genome.DoubleArrayGenome


    }

    @Override
    public MLMethod decode(final Genome genome) {
        RBFNetwork result = new RBFNetwork(inputCount, rbfCount, outputCount);
        DoubleArrayGenome dag = (DoubleArrayGenome) genome;
        System.arraycopy(dag.getData(), 0, result.getLongTermMemory(), 0, size);
        return result;
    }
View Full Code Here


    }

    @Override
    public Genome encode(final MLMethod phenotype) {
        RBFNetwork rbfNet = (RBFNetwork) phenotype;
        DoubleArrayGenome result = new DoubleArrayGenome(size());
        System.arraycopy(rbfNet.getLongTermMemory(), 0, result.getData(), 0, size);
        return result;
    }
View Full Code Here

TOP

Related Classes of com.heatonresearch.aifh.genetic.genome.DoubleArrayGenome

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.