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 Doubleget(int index)Gets the value at the given index.booleangetMapNanToNull()voidonClose()Tear down once a figure is removed.intsize()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 indataare 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 invaluesare 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 invaluesare 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 invaluesare 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 invaluesare 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 invaluesare 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 invaluesare 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:IndexableDataGets the size of this dataset.- Specified by:
sizein classIndexableData<Double>- Returns:
- the size of this dataset
-
get
Description copied from class:IndexableDataGets the value at the given index.- Specified by:
getin classIndexableData<Double>- Parameters:
index- index- Returns:
- value of this dataset at
index
-
onClose
public void onClose()Description copied from class:IndexableDataTear down once a figure is removed.- Overrides:
onClosein classIndexableData<Double>
-
getMapNanToNull
public boolean getMapNanToNull()
-