public final class DefaultTableDataSet extends AbstractTableDataSet
AbstractTableDataSet.XSliceDataSet, AbstractTableDataSet.YSliceDataSetAbstractDataSet.ViewDataSettablePropertiesPROPERTY_CACHE_TAG, PROPERTY_FORMATTER, PROPERTY_OPERATION, PROPERTY_PLANE_PEAKS, PROPERTY_PLANE_WEIGHTS, PROPERTY_RENDERER, PROPERTY_SIZE_BYTES, PROPERTY_SOURCE, PROPERTY_SUMMARY, PROPERTY_TITLE, PROPERTY_X_CACHE_RES, PROPERTY_X_CACHE_RNG, PROPERTY_X_FORMAT, PROPERTY_X_LABEL, PROPERTY_X_MONOTONIC, PROPERTY_X_RANGE, PROPERTY_X_SUMMARY, PROPERTY_X_TAG_WIDTH, PROPERTY_X_VALID_MAX, PROPERTY_X_VALID_MIN, PROPERTY_Y_CACHE_RES, PROPERTY_Y_CACHE_RNG, PROPERTY_Y_FILL, PROPERTY_Y_FORMAT, PROPERTY_Y_LABEL, PROPERTY_Y_MONOTONIC, PROPERTY_Y_RANGE, PROPERTY_Y_SCALETYPE, PROPERTY_Y_SUMMARY, PROPERTY_Y_TAG_WIDTH, PROPERTY_Y_VALID_MAX, PROPERTY_Y_VALID_MIN, PROPERTY_Z_FILL, PROPERTY_Z_FORMAT, PROPERTY_Z_LABEL, PROPERTY_Z_RANGE, PROPERTY_Z_SCALETYPE, PROPERTY_Z_SUMMARY, PROPERTY_Z_VALID_MAX, PROPERTY_Z_VALID_MIN| Constructor and Description |
|---|
DefaultTableDataSet(double[] xTags,
Units xUnits,
double[][] yTags,
Units yUnits,
double[][][] zValues,
Units zUnits,
java.util.Map zValuesMap,
java.util.Map zUnitsMap,
java.util.Map properties)
Creates a new instance of DefaultTableDataSet for tables where the
table geometry changes, and the DataSet contains multiple planes.
|
DefaultTableDataSet(double[] xTags,
Units xUnits,
double[] yTags,
Units yUnits,
double[][] zValues,
Units zUnits,
java.util.Map properties)
Creates a DefaultTableDataSet when the table geometry changes.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultTableDataSet |
createSimple(double[] xTags,
double[] yTags,
double[][] zValues) |
void |
dump(java.io.PrintStream out) |
Datum |
getDatum(int i,
int j)
Returns the Z value for the given indices into the x and y tags as a
Datum. |
double |
getDouble(int i,
int j,
Units units)
Returns the Z value for the given indices into the x and y tags as a
double with the given units. |
double[] |
getDoubleScan(int i,
Units units) |
int |
getInt(int i,
int j,
Units units)
Returns the Z value for the given indices into the x and y tags as a
int with the given units. |
DataSet |
getPlanarView(java.lang.String planeID)
Returns a
DataSet with the specified view as the primary
view. |
java.lang.String[] |
getPlaneIds()
Returns a list of auxiliary planes (e.g.
|
DatumVector |
getScan(int i) |
int |
getYLength(int table)
Returns the number of y tags in the specified table for this data set.
|
Datum |
getYTagDatum(int table,
int j)
Returns the value of the y tag at the given index j as a
Datum. |
double |
getYTagDouble(int table,
int j,
Units units)
Returns the value of the y tag at the given index j as a
double in the given units. |
int |
getYTagInt(int table,
int j,
Units units)
Returns the value of the y tag at the given index j as an
int in the given units. |
DatumVector |
getYTags(int table)
Returns the yTags for this data set as a
DatumVector |
void |
printDebugInfo(java.io.PrintStream out) |
int |
tableCount()
Returns the number of tables in this data set
|
int |
tableEnd(int table)
Returns the index after the last x tag index of the specified table
|
int |
tableOfIndex(int i)
Returns the table number that the specified index is in.
|
int |
tableStart(int table)
Returns the first x tag index of the specified table.
|
AbstractDataSet |
toQDataSet()
this is a highly-interleaved table, and if we sort it out and create a
optimal QDataSet, it's better.
|
java.lang.String |
toString() |
getProperty, getXSlice, getYSlice, getZUnitsgetProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperties, getProperty, getXLength, getXTagDatum, getXTagDouble, getXTagInt, getXUnits, getYUnitspublic DefaultTableDataSet(double[] xTags,
Units xUnits,
double[][] yTags,
Units yUnits,
double[][][] zValues,
Units zUnits,
java.util.Map zValuesMap,
java.util.Map zUnitsMap,
java.util.Map properties)
xTags - the xtags identifying the location of each measurement, often time tags,xUnits - the units for the xtags, e.g. Units.us2000.yTags - the ytags identifying the location of each measurement, for example frequency.yUnits - the units for the ytags, e.g. Units.hertz.zValues - the z values.zUnits - the units of the z values.zValuesMap - ???zUnitsMap - ???properties - properties for the dataset, such as DataSet.PROPERTY_Z_LABEL.public static DefaultTableDataSet createSimple(double[] xTags, double[] yTags, double[][] zValues)
public Datum getDatum(int i, int j)
TableDataSetDatum.i - index of the x tag for the requested value.j - index of the y tag for the requested value.Datumpublic DatumVector getScan(int i)
public double getDouble(int i,
int j,
Units units)
TableDataSetdouble with the given units.i - index of the y tag for the requested value.j - index of the x tag for the requested value.units - the units the returned value should be converted to.double.public double[] getDoubleScan(int i,
Units units)
public int getInt(int i,
int j,
Units units)
TableDataSetint with the given units.i - index of the x tag for the requested value.j - index of the y tag for the requested value.units - the units the returned value should be converted to.int.public DataSet getPlanarView(java.lang.String planeID)
DataSetDataSet with the specified view as the primary
view.planeID - the String id of the requested plane.DataSetpublic java.lang.String[] getPlaneIds()
DataSetpublic AbstractDataSet toQDataSet()
public int getYLength(int table)
TableDataSettable - index of the tablepublic Datum getYTagDatum(int table, int j)
TableDataSetDatum.table - the table numberj - the index of the requested y tagDatum.public double getYTagDouble(int table,
int j,
Units units)
TableDataSetdouble in the given units. YTags must be
monotonically increasing with j.table - the table numberj - the index of the requested y tagunits - the units of the returned valuedouble.public int getYTagInt(int table,
int j,
Units units)
TableDataSetint in the given units. YTags must be
monotonically increasing with j.j - the index of the requested y tagunits - the units of the returned valueint.public DatumVector getYTags(int table)
TableDataSetDatumVectortable - the table numberDatumVectorpublic int tableCount()
TableDataSetpublic int tableEnd(int table)
TableDataSettable - the index of the tablepublic int tableOfIndex(int i)
TableDataSeti - x tag indexpublic int tableStart(int table)
TableDataSettable - the index of the table.public void dump(java.io.PrintStream out)
public java.lang.String toString()
toString in class AbstractTableDataSetpublic void printDebugInfo(java.io.PrintStream out)