Class IndexableNumericDataArrayDate

java.lang.Object
io.deephaven.plot.datasets.data.IndexableNumericData
io.deephaven.plot.datasets.data.IndexableNumericDataArrayDate
All Implemented Interfaces:
PlotExceptionCause, Serializable

public class IndexableNumericDataArrayDate extends IndexableNumericData
IndexableNumericData dataset comprised of an array of Dates. Date values are accessed as nanoseconds from epoch. Data conversion to double means these values are accurate to about 250 nanoseconds.
See Also:
  • Constructor Details

    • IndexableNumericDataArrayDate

      public IndexableNumericDataArrayDate(Date[] data, PlotInfo plotInfo)
      Creates an IndexableNumericDataArrayDate instance.
      Parameters:
      data - data
      plotInfo - plot information
      Throws:
      RequirementFailure - data must not be null
  • Method Details

    • size

      public int size()
      Description copied from class: IndexableNumericData
      Gets the size of this dataset.
      Specified by:
      size in class IndexableNumericData
      Returns:
      size of this dataset
    • get

      public double get(int index)
      Description copied from class: IndexableNumericData
      Gets the value at the specified index as a double.
      Specified by:
      get in class IndexableNumericData
      Parameters:
      index - index
      Returns:
      value at index as a double