Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.ml.genetic.genes
Class DoubleGene

    java.lang.Object
      org.encog.ml.genetic.genes.BasicGene
          org.encog.ml.genetic.genes.DoubleGene

All Implemented Interfaces:
  Serializable, Comparable<Gene>, Gene

    public class DoubleGene

extends BasicGene

A gene that contains a floating point value.

See Also:
  Serialized Form

Constructor Summary
`DoubleGene()`

Method Summary
`void` | `copy(Gene gene)` Copy another gene to this one.
`double` | `getValue()`
`void` | `setValue(double theValue)` Set the value of the gene.
`String` | `toString()`

Methods inherited from class org.encog.ml.genetic.genes.BasicGene
`compareTo, getId, getInnovationId, isEnabled, setEnabled, setId, setInnovationId`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### DoubleGene

    public DoubleGene()

Method Detail

### copy

    public final void copy(Gene gene)

  Copy another gene to this one.

  Parameters:
    `gene` - The other gene to copy.

### getValue

    public final double getValue()

  Returns:
    The gene value.

### setValue

    public final void setValue(double theValue)

  Set the value of the gene.

  Parameters:
    `theValue` - The gene's value.

### toString

    public final String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011. All Rights Reserved.