Class IndexableNumericDataArrayDouble
java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableNumericData
com.illumon.iris.db.plot.datasets.data.IndexableNumericDataArrayDouble
- All Implemented Interfaces:
PlotExceptionCause,Serializable
IndexableNumericData dataset backed by an array of doubles.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIndexableNumericDataArrayDouble(double[] data, PlotInfo plotInfo) Creates an IndexableNumericDataArrayDouble instance. -
Method Summary
Methods inherited from class com.illumon.iris.db.plot.datasets.data.IndexableNumericData
doubleIterator, getPlotInfo, getRange, onClose, stream
-
Constructor Details
-
IndexableNumericDataArrayDouble
Creates an IndexableNumericDataArrayDouble instance.- Parameters:
data- dataplotInfo- plot information- Throws:
com.fishlib.base.verify.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
-