Class IndexableDataFloat

java.lang.Object
com.illumon.iris.db.plot.datasets.data.IndexableData<Float>
com.illumon.iris.db.plot.datasets.data.IndexableDataFloat
All Implemented Interfaces:
PlotExceptionCause, Serializable

public class IndexableDataFloat
extends IndexableData<Float>
IndexableData with Float values.
See Also:
Serialized Form
  • Constructor Details

    • IndexableDataFloat

      public IndexableDataFloat​(float[] data, boolean mapNanToNull, PlotInfo plotInfo)
      Creates an IndexableDataFloat instance. If mapNanToNull is true, Float.NaN values in values are mapped to null.
      Parameters:
      data - data
      mapNanToNull - if true, Float.NaN values are mapped to null
      plotInfo - plot information
  • Method Details

    • size

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

      public Float get​(int index)
      Description copied from class: IndexableData
      Gets the value at the given index.
      Specified by:
      get in class IndexableData<Float>
      Parameters:
      index - index
      Returns:
      value of this dataset at index