Class IndexableDataDouble
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableData<Double>
com.illumon.iris.db.plot.datasets.data.IndexableDataDouble
- All Implemented Interfaces:
PlotExceptionCause
,Serializable
public class IndexableDataDouble extends IndexableData<Double>
IndexableData
with Double
values.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description IndexableDataDouble(double[] values, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataDouble instance.IndexableDataDouble(float[] values, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataDouble instance.IndexableDataDouble(int[] values, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataDouble instance.IndexableDataDouble(long[] values, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataDouble instance.IndexableDataDouble(short[] values, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataDouble instance.IndexableDataDouble(IndexableNumericData data, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataDouble instance.IndexableDataDouble(T[] values, boolean mapNanToNull, PlotInfo plotInfo)
Creates an IndexableDataDouble instance. -
Method Summary
Modifier and Type Method Description Double
get(int index)
Gets the value at the given index.boolean
getMapNanToNull()
void
onClose()
Tear down once a figure is removed.int
size()
Gets the size of this dataset.Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableData
getPlotInfo, snapshot
-
Constructor Details
-
IndexableDataDouble
Creates an IndexableDataDouble instance. If mapNanToNull is true, Double.NaN values indata
are mapped to null.- Parameters:
data
- datamapNanToNull
- if true, Double.NaN values are mapped to null
-
IndexableDataDouble
Creates an IndexableDataDouble instance. If mapNanToNull is true, Double.NaN values invalues
are mapped to null.- Type Parameters:
T
- type of the data invalues
- Parameters:
values
- datamapNanToNull
- if true, Double.NaN values are mapped to null
-
IndexableDataDouble
Creates an IndexableDataDouble instance. If mapNanToNull is true, Double.NaN values invalues
are mapped to null.- Parameters:
values
- datamapNanToNull
- if true, Double.NaN values are mapped to null
-
IndexableDataDouble
Creates an IndexableDataDouble instance. If mapNanToNull is true, Double.NaN values invalues
are mapped to null.- Parameters:
values
- datamapNanToNull
- if true, Double.NaN values are mapped to nullplotInfo
- plot information
-
IndexableDataDouble
Creates an IndexableDataDouble instance. If mapNanToNull is true, Double.NaN values invalues
are mapped to null.- Parameters:
values
- datamapNanToNull
- if true, Double.NaN values are mapped to nullplotInfo
- plot information
-
IndexableDataDouble
Creates an IndexableDataDouble instance. If mapNanToNull is true, Double.NaN values invalues
are mapped to null.- Parameters:
values
- datamapNanToNull
- if true, Double.NaN values are mapped to nullplotInfo
- plot information
-
IndexableDataDouble
Creates an IndexableDataDouble instance. If mapNanToNull is true, Double.NaN values invalues
are mapped to null.- Parameters:
values
- datamapNanToNull
- if true, Double.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<Double>
- Returns:
- the size of this dataset
-
get
Description copied from class:IndexableData
Gets the value at the given index.- Specified by:
get
in classIndexableData<Double>
- Parameters:
index
- index- Returns:
- value of this dataset at
index
-
onClose
public void onClose()Description copied from class:IndexableData
Tear down once a figure is removed.- Overrides:
onClose
in classIndexableData<Double>
-
getMapNanToNull
public boolean getMapNanToNull()
-