Class IndexableDataFloat
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableData<Float>
com.illumon.iris.db.plot.datasets.data.IndexableDataFloat
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
public class IndexableDataFloat extends IndexableData<Float>
IndexableData
with Float
values.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableDataFloat(float[] data, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataFloat instance. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableData
getPlotInfo, onClose, snapshot
-
Constructor Details
-
IndexableDataFloat
Creates an IndexableDataFloat instance. If mapNanToNull is true, Float.NaN values invalues
are mapped to null.- Parameters:
data
- datamapNanToNull
- if true, Float.NaN values are mapped to nullplotInfo
- plot information
-
-
Method Details
-
size
public int size()Description copied from class:IndexableData
Gets the size of this dataset.- Specified by:
size
in classIndexableData<Float>
- Returns:
- the size of this dataset
-
get
Description copied from class:IndexableData
Gets the value at the given index.- Specified by:
get
in classIndexableData<Float>
- Parameters:
index
- index- Returns:
- value of this dataset at
index
-