Package org.encog.ml.genetic.genes

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


    this.pathChromosome = new Chromosome();
    this.getChromosomes().add(this.pathChromosome);
   
    for(int i=0;i<organism.length;i++)
    {
      IntegerGene gene = new IntegerGene();
      gene.setValue(organism[i]);
      this.pathChromosome.getGenes().add(gene);
    }
    setOrganism(organism);
       
    encode();
View Full Code Here


    Chromosome chromosome = this.getChromosomes().get(0);
    int[] organism = new int[chromosome.size()];
   
    for(int i=0;i<chromosome.size();i++)
    {
      IntegerGene gene = (IntegerGene)chromosome.get(i);
      organism[i] = gene.getValue();
    }
   
    setOrganism(organism);
  }
View Full Code Here

   
    int[] organism = (int[])getOrganism();

    for(int i=0;i<chromosome.size();i++)
    {
      IntegerGene gene = (IntegerGene)chromosome.get(i);
      gene.setValue(organism[i]);
    }
  }
View Full Code Here

TOP

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

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.