Class IndexableNumericDataSwappableTable

All Implemented Interfaces:
PlotExceptionCause, Serializable

public class IndexableNumericDataSwappableTable extends LiveIndexableNumericData
IndexableData dataset whose data is a column in a SwappableTable and whose indices are the row numbers of the column. The column must be numeric.
See Also:
  • Constructor Details

    • IndexableNumericDataSwappableTable

      public IndexableNumericDataSwappableTable(SwappableTable swappableTable, String column, PlotInfo plotInfo)
      Creates an IndexableNumericDataSwappableTable instance. The numeric data is a column in the swappableTable. Indices are the row numbers of the column.
      Parameters:
      swappableTable - swappable table
      column - column of swappableTable holding the data values
      plotInfo - plot information
      Throws:
      RequirementFailure - swappableTable and column must not be null
      IllegalArgumentException - column must be a column in swappableTable
      RuntimeException - column must be numeric
  • 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 i)
      Description copied from class: IndexableNumericData
      Gets the value at the specified index as a double.
      Specified by:
      get in class IndexableNumericData
      Parameters:
      i - index
      Returns:
      value at index as a double
    • getSwappableTable

      public SwappableTable getSwappableTable()
    • getColumn

      public String getColumn()