|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.virbo.dataset.AbstractDataSet org.virbo.dataset.IDataSet
public final class IDataSet
rank 1,2,or 3 dataset backed by Integer (4 byte) array. Mutable datasets warning: No dataset should be mutable once it is accessible to the rest of the system. This would require clients make defensive copies which would seriously degrade performance.
Field Summary | |
---|---|
static java.lang.String |
version
|
Fields inherited from class org.virbo.dataset.AbstractDataSet |
---|
properties |
Fields inherited from interface org.virbo.dataset.QDataSet |
---|
CACHE_TAG, CADENCE, COORDINATE_FRAME, DELTA_MINUS, DELTA_PLUS, DEPEND_0, DEPEND_1, DEPEND_2, FILL_VALUE, LABEL, MAX_PLANE_COUNT, MAX_RANK, MONOTONIC, NAME, PLANE_0, QUBE, RENDER_TYPE, SCALE_TYPE, TITLE, TYPICAL_MAX, TYPICAL_MIN, UNITS, USER_PROPERTIES, VALID_MAX, VALID_MIN, WEIGHTS_PLANE |
Method Summary | |
---|---|
static IDataSet |
copy(QDataSet ds)
copies the dataset into a writeable dataset, and all of it's depend datasets as well. |
static IDataSet |
createRank1(int len0)
|
static IDataSet |
createRank2(int len0,
int len1)
|
static IDataSet |
createRank3(int len0,
int len1,
int len2)
|
void |
join(IDataSet ds)
append the second dataset onto this dataset. |
int |
length()
return the length of the first dimension |
int |
length(int i)
return the length of the second dimension, for the ith element of the first dimension |
int |
length(int i0,
int i1)
return the length of the third dimension, for the ith element of the first dimension and jth element of the second dimension. |
void |
putLength(int len)
Shorten the dataset by changing it's dim 0 length parameter. |
void |
putValue(int i0,
double value)
|
void |
putValue(int i0,
int i1,
double value)
|
void |
putValue(int i0,
int i1,
int i2,
double value)
|
int |
rank()
returns the rank of the dataset, which is the number of indeces used to access data. |
java.lang.String |
toString()
|
double |
value(int i0)
rank 1 accessor. |
double |
value(int i0,
int i1)
rank 2 accessor. |
double |
value(int i0,
int i1,
int i2)
rank 3 accessor. |
static IDataSet |
wrap(int[] back)
creates a rank1 IDataSet by wrapping an existing array. |
static IDataSet |
wrap(int[] data,
int[] qube)
Wraps an array from array of dimension sizes. |
static IDataSet |
wrap(int[] back,
int nx,
int ny)
creates a IDataSet by wrapping an existing array, aliasing it to rank 2. |
static IDataSet |
wrap(int[] back,
int rank,
int len0,
int len1,
int len2)
|
Methods inherited from class org.virbo.dataset.AbstractDataSet |
---|
property, property, property, putProperty, putProperty, putProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.virbo.dataset.WritableDataSet |
---|
putProperty, putProperty, putProperty |
Methods inherited from interface org.virbo.dataset.QDataSet |
---|
property, property, property |
Field Detail |
---|
public static final java.lang.String version
Method Detail |
---|
public static IDataSet createRank1(int len0)
public static IDataSet createRank2(int len0, int len1)
public static IDataSet createRank3(int len0, int len1, int len2)
public static IDataSet wrap(int[] data, int[] qube)
data
- array containing the data, with the last dimension contiguous in memory.qube
- array specifying the rank and size of each dimension
public static IDataSet wrap(int[] back, int rank, int len0, int len1, int len2)
public int rank()
QDataSet
rank
in interface QDataSet
rank
in class AbstractDataSet
public int length()
QDataSet
length
in interface QDataSet
length
in class AbstractDataSet
public int length(int i)
QDataSet
length
in interface QDataSet
length
in class AbstractDataSet
public int length(int i0, int i1)
QDataSet
length
in interface QDataSet
length
in class AbstractDataSet
public double value(int i0)
QDataSet
value
in interface QDataSet
value
in class AbstractDataSet
public double value(int i0, int i1)
QDataSet
value
in interface QDataSet
value
in class AbstractDataSet
public double value(int i0, int i1, int i2)
QDataSet
value
in interface QDataSet
value
in class AbstractDataSet
public void putValue(int i0, double value)
putValue
in interface WritableDataSet
public void putValue(int i0, int i1, double value)
putValue
in interface WritableDataSet
public void putValue(int i0, int i1, int i2, double value)
putValue
in interface WritableDataSet
public void putLength(int len)
public java.lang.String toString()
toString
in class AbstractDataSet
public static IDataSet copy(QDataSet ds)
public static IDataSet wrap(int[] back)
public static IDataSet wrap(int[] back, int nx, int ny)
public void join(IDataSet ds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |