Package org.jenetics

Examples of org.jenetics.DoubleGene.doubleValue()


    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));
    }
  }

  public static void main(String[] args) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.