Class IndexableNumericData

java.lang.Object
io.deephaven.plot.datasets.data.IndexableNumericData
All Implemented Interfaces:
PlotExceptionCause, Serializable
Direct Known Subclasses:
IndexableNumericDataArrayDate, IndexableNumericDataArrayDouble, IndexableNumericDataArrayFloat, IndexableNumericDataArrayInstant, IndexableNumericDataArrayInt, IndexableNumericDataArrayLong, IndexableNumericDataArrayNumber, IndexableNumericDataArrayShort, IndexableNumericDataListNumber, LiveIndexableNumericData

public abstract class IndexableNumericData extends Object implements PlotExceptionCause, Serializable
Dataset with indexed numeric values.
See Also:
  • Constructor Details

    • IndexableNumericData

      public IndexableNumericData(PlotInfo plotInfo)
      Parameters:
      plotInfo - plot information
  • Method Details

    • getPlotInfo

      public PlotInfo getPlotInfo()
      Specified by:
      getPlotInfo in interface PlotExceptionCause
    • size

      public abstract int size()
      Gets the size of this dataset.
      Returns:
      size of this dataset
    • get

      public abstract double get(int index)
      Gets the value at the specified index as a double.
      Parameters:
      index - index
      Returns:
      value at index as a double
    • doubleIterator

      public Spliterator.OfDouble doubleIterator()
      Gets the iterator over this dataset.
      Returns:
      dataset iterator
    • stream

      public DoubleStream stream()
      Gets the values of this dataset as a stream of doubles.
      Returns:
      stream of this dataset's values as doubles