Package io.deephaven.plot.datasets.data
Class IndexableNumericDataArrayInt
java.lang.Object
io.deephaven.plot.datasets.data.IndexableNumericData
io.deephaven.plot.datasets.data.IndexableNumericDataArrayInt
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
IndexableNumericData
dataset backed by an array of ints. When accessed, data values are converted to doubles
before being returned.- See Also:
-
Constructor Summary
ConstructorDescriptionIndexableNumericDataArrayInt
(int[] data, PlotInfo plotInfo) Creates an IndexableNumericDataArrayInt instance. -
Method Summary
Methods inherited from class io.deephaven.plot.datasets.data.IndexableNumericData
doubleIterator, getPlotInfo, stream
-
Constructor Details
-
IndexableNumericDataArrayInt
Creates an IndexableNumericDataArrayInt instance.- Parameters:
data
- dataplotInfo
- plot information- Throws:
RequirementFailure
-data
must not be null
-
-
Method Details
-
size
public int size()Description copied from class:IndexableNumericData
Gets the size of this dataset.- Specified by:
size
in classIndexableNumericData
- Returns:
- size of this dataset
-
get
public double get(int i) Description copied from class:IndexableNumericData
Gets the value at the specifiedindex
as a double.- Specified by:
get
in classIndexableNumericData
- Parameters:
i
- index- Returns:
- value at
index
as a double
-