Package org.jenetics

Examples of org.jenetics.DoubleGene


  {
    private static final long serialVersionUID = 1L;

    @Override
    public Double apply(final Genotype<DoubleGene> genotype) {
      final DoubleGene gene = genotype.getChromosome().getGene(0);
      final double radians = toRadians(gene.doubleValue());
      return Math.log(sin(radians)*cos(radians));
    }
 
View Full Code Here

TOP

Related Classes of org.jenetics.DoubleGene

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.