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