gov.nasa.javaGenes.evolvableDoubleList
Class EvolvableDoubleList
java.lang.Object
gov.nasa.javaGenes.core.Evolvable
gov.nasa.javaGenes.evolvableDoubleList.EvolvableDoubleList
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class EvolvableDoubleList
- extends Evolvable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
list
protected ExtendedVector list
EvolvableDoubleList
public EvolvableDoubleList()
EvolvableDoubleList
public EvolvableDoubleList(int length)
EvolvableDoubleList
public EvolvableDoubleList(int length,
double value)
- used for testing
EvolvableDoubleList
public EvolvableDoubleList(double[] array)
EvolvableDoubleList
public EvolvableDoubleList(double[] array,
double divideArrayBy)
- used for testing
removeAll
public void removeAll()
remove
public void remove(int index)
remove
public void remove(EvolvableDouble d)
insertBefore
public void insertBefore(int index,
EvolvableDouble[] toInsert)
insertAfter
public void insertAfter(int index,
EvolvableDouble[] toInsert)
addDoubleValue
public void addDoubleValue(double d)
setDoubleValue
public void setDoubleValue(int index,
double value)
addDouble
public void addDouble(EvolvableDouble d)
getDouble
public EvolvableDouble getDouble(int index)
getDoubleValue
public double getDoubleValue(int index)
getDoubleModulo
public EvolvableDouble getDoubleModulo(int index)
interpolateInto
public double interpolateInto(int index,
DoubleInterval interval)
getDoubleValueModulo
public double getDoubleValueModulo(int index)
getSize
public int getSize()
- Overrides:
getSize
in class Evolvable
- Returns:
- the size of the object
getLastIndex
public int getLastIndex()
copyForEvolution
public Evolvable copyForEvolution()
- Description copied from class:
Evolvable
- should be implemented by all subclasses, but isn't for all of the older code. The functionality
is there but the naming is different.
- Overrides:
copyForEvolution
in class Evolvable
copyForEvolution
public EvolvableDoubleList copyForEvolution(EvolvableDoubleList empty)
isEqual
public boolean isEqual(EvolvableDoubleList other)
toString
public java.lang.String toString()