JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.evolvableDoubleList
Class EvolvableDouble

java.lang.Object
  extended bygov.nasa.javaGenes.evolvableDoubleList.EvolvableDouble
All Implemented Interfaces:
java.io.Serializable

public class EvolvableDouble
extends java.lang.Object
implements java.io.Serializable

keeps its internal value between 0 and 1. Will silently enforce this is you try to get outside the range (see setValue)

See Also:
Serialized Form

Field Summary
protected static DoubleInterval universalRange
           
protected static double universalRangeSize
           
protected  double value
           
 
Constructor Summary
EvolvableDouble()
           
EvolvableDouble(double value)
           
 
Method Summary
 EvolvableDouble copy()
           
 double getValue()
           
 double interpolateInto(DoubleInterval range)
           
 boolean isEqual(EvolvableDouble other)
           
static boolean isWithinRange(double value)
           
static double limitToLegalRange(double value)
           
 void mutateByStandardDeviation(double standardDeviation)
           
 void setValue(double value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

universalRange

protected static final DoubleInterval universalRange

universalRangeSize

protected static final double universalRangeSize
See Also:
Constant Field Values

value

protected double value
Constructor Detail

EvolvableDouble

public EvolvableDouble()

EvolvableDouble

public EvolvableDouble(double value)
Method Detail

copy

public EvolvableDouble copy()

interpolateInto

public double interpolateInto(DoubleInterval range)

limitToLegalRange

public static double limitToLegalRange(double value)

mutateByStandardDeviation

public void mutateByStandardDeviation(double standardDeviation)

isWithinRange

public static boolean isWithinRange(double value)

setValue

public void setValue(double value)

getValue

public double getValue()

isEqual

public boolean isEqual(EvolvableDouble other)

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus