org.artoflife.gp.genome.numeric
Class DivideGene

java.lang.Object
  |
  +--org.artoflife.gp.genome.GpTreeNode
        |
        +--org.artoflife.gp.genome.FunctionGene
              |
              +--org.artoflife.gp.genome.numeric.BinaryNumericGene
                    |
                    +--org.artoflife.gp.genome.numeric.DivideGene
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public final class DivideGene
extends BinaryNumericGene

Float value of value1 (a float) divided by value2 (a float). May evaluate to NaN on division by 0.

Author:
Steve Meyfroidt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.artoflife.gp.genome.FunctionGene
parameterGenes
 
Constructor Summary
DivideGene()
           
 
Method Summary
protected  float evaluateFor(float parameter1, float parameter2)
          Evaluate the function across the parameters passed in.
 
Methods inherited from class org.artoflife.gp.genome.numeric.BinaryNumericGene
evaluate, getParameterClasses, getReturnClass
 
Methods inherited from class org.artoflife.gp.genome.FunctionGene
clone, evaluate, getBooleanParameter, getDoubleParameter, getFloatParameter, getMutators, getParameterGene, initParameterGenes, setParameterGene, toString
 
Methods inherited from class org.artoflife.gp.genome.GpTreeNode
getParameterClass, getParametersLength, getSize, mutate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DivideGene

public DivideGene()
Method Detail

evaluateFor

protected float evaluateFor(float parameter1,
                            float parameter2)
Description copied from class: BinaryNumericGene
Evaluate the function across the parameters passed in.

Specified by:
evaluateFor in class BinaryNumericGene
See Also:
BinaryNumericGene.evaluateFor(float, float)

artoflife pre0.1.0-dev

Copyright © 2002 the Art Of Life team. All Rights Reserved.