|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unh.sdb.common.Values
edu.unh.sdb.common.FloatValues
public class FloatValues
FloatValues store floats in a 1 D float array
Constructor Summary | |
---|---|
FloatValues()
construct a FloatValues with no data |
|
FloatValues(float[] floatArray)
construct a FloatValues for a given float array |
|
FloatValues(int size)
construct a FloatValues for a given float array with the given number of floats. |
Method Summary | |
---|---|
float[] |
floatValues()
Deprecated. Use getDataReference() |
byte |
getByte(int index)
return the byte value of the float at the given index of the float array |
byte[] |
getBytes()
Return a byte array representing all elements in the Values object |
byte[] |
getBytes(byte[] filler)
fill the passed array with this data |
float[] |
getDataReference()
Return a reference to the data array this object contains. |
double |
getDouble(int index)
return the double value of the float at the given index of the float array |
double[] |
getDoubles()
Return double array representing all elements in the Values object |
double[] |
getDoubles(double[] filler)
fill the passed array with this data |
float |
getFloat(int index)
return the float value at the given index of the array |
float[] |
getFloats()
return a reference to the float array this object is representing |
float[] |
getFloats(float[] filler)
fill the passed array with this data |
float[] |
getFloats(int start,
int stride,
int num)
Return float array representing a subset of elements in the Values object Copying starts at the index specified by the start argument, the 2nd item copied will be at index start + stride where stride is the second argument; the 3rd is at start + 2*stride and so forth until the specified number of values have been copied (3rd argument). |
int |
getInt(int index)
return the int value of the float at the given index of the float array |
int[] |
getInts()
Return int array representing all elements in the Values object |
int[] |
getInts(int[] filler)
fill the passed array with this data |
short |
getShort(int index)
return the short value of the float at the given index of the float array |
short[] |
getShorts()
Return a short array representing all elements in the Values object |
short[] |
getShorts(short[] filler)
fill the passed array with this data |
int |
getStorageType()
return the storageType of this FloatValues, The data type of the array used to store the actual data |
static void |
main(java.lang.String[] args)
|
Values |
reorder(int step)
Return a new Values object with the values shuffled. |
void |
setByte(int index,
byte val)
Set the specified entry to the specified value after conversion, if needed. |
void |
setData(int index,
float floatData)
set the data at given index NEW NEW NEW |
void |
setDouble(int index,
double val)
Set the specified entry to the specified value after conversion, if needed. |
void |
setFloat(int index,
float val)
Set the specified entry to the specified value after conversion, if needed. |
void |
setInt(int index,
int val)
Set the specified entry to the specified value after conversion, if needed. |
void |
setShort(int index,
short val)
Set the specified entry to the specified value after conversion, if needed. |
void |
setValues(int start,
Values newVals)
Assign elements of the passed in Values object to this one beginning at the start index . |
void |
setValues(Values newVals)
Assign the data from the argument Values object to this object. |
int |
size()
retrun the size of the 1 D array, in which the data is stored |
Values |
spawn()
create a copy of this object |
Values |
spawn(int start,
int stride,
int count)
Create a new instance of FloatValues with a subsest of the data in this object. |
Methods inherited from class edu.unh.sdb.common.Values |
---|
getBytes, getBytes, getBytes, getBytes, getDoubles, getDoubles, getDoubles, getDoubles, getFloats, getFloats, getFloats, getInts, getInts, getInts, getInts, getShorts, getShorts, getShorts, getShorts, spawn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatValues()
public FloatValues(float[] floatArray)
public FloatValues(int size)
Method Detail |
---|
public final void setData(int index, float floatData)
public int getStorageType()
getStorageType
in class Values
public int size()
size
in class Values
public Values reorder(int step)
reorder
in class Values
public double[] getDoubles()
getDoubles
in class Values
public float[] getFloats()
getFloats
in class Values
public int[] getInts()
getInts
in class Values
public short[] getShorts()
getShorts
in class Values
public byte[] getBytes()
getBytes
in class Values
public double[] getDoubles(double[] filler)
getDoubles
in class Values
public float[] getFloats(float[] filler)
getFloats
in class Values
public int[] getInts(int[] filler)
getInts
in class Values
public short[] getShorts(short[] filler)
getShorts
in class Values
public byte[] getBytes(byte[] filler)
getBytes
in class Values
public float getFloat(int index)
getFloat
in class Values
public int getInt(int index)
getInt
in class Values
public short getShort(int index)
getShort
in class Values
public byte getByte(int index)
getByte
in class Values
public double getDouble(int index)
getDouble
in class Values
public float[] floatValues()
public float[] getDataReference()
public float[] getFloats(int start, int stride, int num)
getFloats
in class Values
public Values spawn()
spawn
in class Values
public Values spawn(int start, int stride, int count)
spawn
in class Values
start
- - first value to copystride
- - steps between valuescount
- - number of values to copypublic void setDouble(int index, double val)
setDouble
in class Values
public void setFloat(int index, float val)
setFloat
in class Values
public void setInt(int index, int val)
setInt
in class Values
public void setShort(int index, short val)
setShort
in class Values
public void setByte(int index, byte val)
setByte
in class Values
public void setValues(Values newVals)
setValues
in class Values
public void setValues(int start, Values newVals)
setValues
in class Values
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |