Package org.encog.ml.genetic.genes

Examples of org.encog.ml.genetic.genes.Gene


    this.networkChromosome = new Chromosome();

    // create an array of "double genes"
    final int size = network.getStructure().calculateSize();
    for (int i = 0; i < size; i++) {
      final Gene gene = new DoubleGene();
      this.networkChromosome.getGenes().add(gene);
    }

    getChromosomes().add(this.networkChromosome);
View Full Code Here


      final int temp = iswap1;
      iswap1 = iswap2;
      iswap2 = temp;
    }

    final Gene gene1 = chromosome.getGenes().get(iswap1);
    final Gene gene2 = chromosome.getGenes().get(iswap2);

    // remove the two genes
    chromosome.getGenes().remove(gene1);
    chromosome.getGenes().remove(gene2);
View Full Code Here

TOP

Related Classes of org.encog.ml.genetic.genes.Gene

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.