public final class GJPrimitiveDoubleDataVector extends GJAbstractDataVector<PrimitiveDoubleBuffer>
GJDataVectorInterface.AXIS
categories
Constructor and Description |
---|
GJPrimitiveDoubleDataVector()
Used for JUnit tests
|
Modifier and Type | Method and Description |
---|---|
double[] |
getDataBufferData()
Need this for de-serialization
|
double[] |
getDataValues(GJDataTransformInterface transform)
Returns the data as an IEEE double precision array transformed by the
class specified by
getTranform |
int |
getDimension()
Length of the vector in the DataBuffer
|
double[] |
getRawDataValues()
Returns the data as an IEEE double precision array without
applying a transform
|
void |
setDataBufferData(java.util.AbstractList<? extends java.lang.Number> v)
Sets the vector in the DataBuffer to the
|
void |
setDataBufferData(double[] v)
Sets the vector in the DataBuffer to the
|
void |
setDataBufferData(int[] v)
Sets the vector in the DataBuffer to the
|
void |
setEntry(int index,
double val)
Sets a value in the DataBuffer
This method should fire a PropertyChangeEvent when the buffer data are
changed
|
clearDataBufferData, getBufferClass, getCategories, getCategory, getDataBuffer, getEntry, getName, isCategorical, propertyChange, setCategories, setCategories, setCategory, setDataBuffer, setDataBufferData, setName
addLink, addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getLinks, getPCS, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removeLink, removePropertyChangeListener, removePropertyChangeListener, setLinks
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removePropertyChangeListener, removePropertyChangeListener
public GJPrimitiveDoubleDataVector()
public final void setDataBufferData(double[] v)
v
- a double[] which will be deep copied to a new ArrayRealVector in
the data bufferpublic final double[] getDataBufferData()
public final void setDataBufferData(int[] v)
v
- an int[] which will be cast to double[] and copied to a new
PrimitiveDoubleBuffer in the data bufferpublic final void setDataBufferData(java.util.AbstractList<? extends java.lang.Number> v)
v
- a List whose data will be copied, cast to double and copied to a
new PrimitiveDoubleBuffer
in the data bufferpublic final double[] getDataValues(GJDataTransformInterface transform)
getTranform
public final double[] getRawDataValues()
public final void setEntry(int index, double val)
GJDataVectorInterface
val
- the new value as doublepublic final int getDimension()