public class SparseDataSet extends AbstractDataSet implements WritableDataSet
sp= SparseDataSet.createQube([2,4]) sp[2,2]= 1 print sp[0,0]
propertiesAVERAGE_TYPE, BIN_MAX, BIN_MAX_NAME, BIN_MIN, BIN_MIN_NAME, BIN_MINUS, BIN_MINUS_NAME, BIN_PLUS, BIN_PLUS_NAME, BINS_0, BINS_1, BUNDLE_0, BUNDLE_1, BUNDLE_2, BUNDLE_3, CACHE_TAG, CADENCE, CONTEXT_0, CONTEXT_1, COORDINATE_FRAME, DEFAULT_FILL_VALUE, DELTA_MINUS, DELTA_MINUS_NAME, DELTA_PLUS, DELTA_PLUS_NAME, DEPEND_0, DEPEND_1, DEPEND_2, DEPEND_3, DEPENDNAME_0, DEPENDNAME_1, DESCRIPTION, ELEMENT_DIMENSIONS, ELEMENT_LABEL, ELEMENT_NAME, FILL_VALUE, FORMAT, JOIN_0, LABEL, LIMIT_HUGE_DATASET, MAX_HIGH_RANK, MAX_PLANE_COUNT, MAX_RANK, MAX_UNIT_BUNDLE_COUNT, METADATA, METADATA_MODEL, MIN_WAVEFORM_LENGTH, MONOTONIC, NAME, NOTES, PLANE_0, QUBE, RENDER_TYPE, SCALE_TYPE, SOURCE, START_INDEX, TITLE, TYPICAL_MAX, TYPICAL_MIN, UNITS, USER_PROPERTIES, VALID_MAX, VALID_MIN, VALUE_AVERAGE_TYPE_GEOMETRIC, VALUE_AVERAGE_TYPE_LINEAR, VALUE_AVERAGE_TYPE_MOD24, VALUE_AVERAGE_TYPE_MOD360, VALUE_AVERAGE_TYPE_MODPI, VALUE_AVERAGE_TYPE_MODTAU, VALUE_AVERAGE_TYPE_NONE, VALUE_BINS_MIN_MAX, VALUE_BINS_MIN_MAX_INCLUSIVE, VALUE_COORDINATE_FRAME_COMPLEX_NUMBER, VALUE_METADATA_MODEL_ISTP, VALUE_METADATA_MODEL_SPASE, VALUE_RENDER_TYPE_COMPOSITE_IMAGE, VALUE_RENDER_TYPE_DIGITAL, VALUE_RENDER_TYPE_EVENTS_BAR, VALUE_RENDER_TYPE_NNSPECTROGRAM, VALUE_RENDER_TYPE_SERIES, VALUE_RENDER_TYPE_TRIANGLE_MESH, VALUE_SCALE_TYPE_LINEAR, VALUE_SCALE_TYPE_LOG, VERSION, WEIGHTS| Modifier and Type | Method and Description |
|---|---|
static SparseDataSet |
createQube(int[] qube)
create the qube dataset with the given dimensions.
|
static SparseDataSet |
createRank(int rank)
create the dataset with the given rank.
|
static SparseDataSet |
createRankLen(int rank,
int len0)
create the dataset with the given rank and initial length.
|
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.
|
int |
length(int i0,
int i1,
int i2)
return the length of the fourth dimension for the ith, jth and kth elements of the first three dimensions.
|
void |
putValue(double d)
put a value into the rank 0 dataset.
|
void |
putValue(int i0,
double d)
put a value into the rank 1 dataset.
|
void |
putValue(int i0,
int i1,
double d)
put a value into the rank 2 dataset.
|
void |
putValue(int i0,
int i1,
int i2,
double d)
put a value into the rank 3 dataset.
|
void |
putValue(int i0,
int i1,
int i2,
int i3,
double d)
put a value into the rank 4 dataset.
|
int |
rank()
returns the rank of the dataset, which is the number of indeces used to access data.
|
void |
setLength(int length)
set the length of the zeroth dimension.
|
void |
setQube(int[] qube)
make this a qube dataset, where all the lengths are the same.
|
double |
value()
rank 0 accessor.
|
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.
|
double |
value(int i0,
int i1,
int i2,
int i3)
rank 4 accessor.
|
capability, checkImmutable, isImmutable, makeImmutable, property, property, putProperty, putProperty, slice, svalue, toString, trimclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisImmutable, makeImmutable, putProperty, putPropertypublic static SparseDataSet createRank(int rank)
rank - number of indecescreateRankLen(int, int),
createQube(int[])public static SparseDataSet createRankLen(int rank, int len0)
rank - the result's rank.len0 - the number of records in the result.createQube(int[])public static SparseDataSet createQube(int[] qube)
qube - the index dimensions.public void setLength(int length)
length - public void setQube(int[] qube)
qube - public int rank()
QDataSetrank in interface QDataSetrank in class AbstractDataSetpublic int length()
QDataSetlength in interface QDataSetlength in class AbstractDataSetpublic int length(int i)
QDataSetlength in interface QDataSetlength in class AbstractDataSeti - the indexpublic int length(int i0,
int i1)
QDataSetlength in interface QDataSetlength in class AbstractDataSeti0 - the indexi1 - the indexpublic int length(int i0,
int i1,
int i2)
QDataSetlength in interface QDataSetlength in class AbstractDataSeti0 - the indexi1 - the indexi2 - the indexpublic void putValue(double d)
WritableDataSetputValue in interface WritableDataSetd - the valuepublic void putValue(int i0,
double d)
WritableDataSetputValue in interface WritableDataSeti0 - the indexd - the valuepublic void putValue(int i0,
int i1,
double d)
WritableDataSetputValue in interface WritableDataSeti0 - the indexi1 - the indexd - the valuepublic void putValue(int i0,
int i1,
int i2,
double d)
WritableDataSetputValue in interface WritableDataSeti0 - the indexi1 - the indexi2 - the indexd - the valuepublic void putValue(int i0,
int i1,
int i2,
int i3,
double d)
WritableDataSetputValue in interface WritableDataSeti0 - the indexi1 - the indexi2 - the indexi3 - the indexd - the valuepublic double value()
QDataSetvalue in interface QDataSetvalue in class AbstractDataSetpublic double value(int i0)
QDataSetvalue in interface QDataSetvalue in class AbstractDataSeti0 - the indexpublic double value(int i0,
int i1)
QDataSetvalue in interface QDataSetvalue in class AbstractDataSeti0 - the indexi1 - the indexpublic double value(int i0,
int i1,
int i2)
QDataSetvalue in interface QDataSetvalue in class AbstractDataSeti0 - the indexi1 - the indexi2 - the indexpublic double value(int i0,
int i1,
int i2,
int i3)
QDataSetvalue in interface QDataSetvalue in class AbstractDataSeti0 - the indexi1 - the indexi2 - the indexi3 - the index