public class TagGenDataSet extends AbstractRank1DataSet
These are the 1440 minutely timetags in the first day of 2000-01-01.TagGenDataSet( 1440, 60, 0, Units.t2000 )
properties
AVERAGE_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
Constructor and Description |
---|
TagGenDataSet(int length,
double scale,
double offset)
create new dimensionless TagGenDataSet
|
TagGenDataSet(int length,
double scale,
double offset,
Units units)
create new TagGenDataSet
|
Modifier and Type | Method and Description |
---|---|
QDataSet |
slice(int i)
return a dataset that is a slice of this dataset, slicing on the zeroth
dimension.
|
QDataSet |
trim(int start,
int end)
return a dataset that is a subset of this dataset.
|
double |
value(int i)
rank 1 accessor.
|
length, rank
capability, checkImmutable, isImmutable, length, length, length, makeImmutable, property, property, putProperty, putProperty, svalue, toString, value, value, value, value
public TagGenDataSet(int length, double scale, double offset)
length
- number of elementsscale
- the increment between elementsoffset
- the value for the zeroth element.public TagGenDataSet(int length, double scale, double offset, Units units)
length
- number of elementsscale
- the increment between elementsoffset
- the value for the zeroth element.units
- the units of the data.public double value(int i)
QDataSet
value
in interface QDataSet
value
in class AbstractDataSet
i
- the indexpublic QDataSet trim(int start, int end)
QDataSet
ds= DDataSet.createRank1(100);
QDataSet trim= ds.trim(50,60);
assert( trim.length()==10 );
Note start and end must be positive. Negative indices,
referenced from the end of the dataset, are not supported here.trim
in interface QDataSet
trim
in class AbstractDataSet
start
- the first index to be included in the new dataset.end
- the exclusive index indicating the last index.public QDataSet slice(int i)
QDataSet
slice
in interface QDataSet
slice
in class AbstractDataSet
i
- the index to slice at