org.encog.solve.genetic.genes
Class DoubleGene
java.lang.Object
org.encog.solve.genetic.genes.BasicGene
org.encog.solve.genetic.genes.DoubleGene
- All Implemented Interfaces:
- Comparable<Gene>, Gene
public class DoubleGene
- extends BasicGene
A gene that contains a floating point value.
DoubleGene
public DoubleGene()
copy
public void copy(Gene gene)
- Copy another gene to this one.
- Parameters:
gene - The other gene to copy.
getValue
public double getValue()
- Returns:
- The gene value.
setValue
public void setValue(double value)
- Set the value of the gene.
- Parameters:
value - The gene's value.
toString
public String toString()
-
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.