Module platform

Class StatisticsAdapter

java.lang.Object
de.grogra.pf.data.DatasetAdapterBase
de.grogra.pf.data.StatisticsAdapter
All Implemented Interfaces:
CategoryDataset, Dataset, KeyedValues2D, StatisticalCategoryDataset, Values2D

public final class StatisticsAdapter extends DatasetAdapterBase implements StatisticalCategoryDataset
  • Constructor Details

    • StatisticsAdapter

      public StatisticsAdapter(Dataset ds)
  • Method Details

    • getMeanValue

      public Number getMeanValue(int row, int column)
      Description copied from interface: StatisticalCategoryDataset
      Returns the mean value for an item.
      Specified by:
      getMeanValue in interface StatisticalCategoryDataset
      Parameters:
      row - the row index (zero-based).
      column - the column index (zero-based).
      Returns:
      The mean value (possibly null).
    • getMeanValue

      public Number getMeanValue(Comparable rowKey, Comparable columnKey)
      Description copied from interface: StatisticalCategoryDataset
      Returns the mean value for an item.
      Specified by:
      getMeanValue in interface StatisticalCategoryDataset
      Parameters:
      rowKey - the row key.
      columnKey - the columnKey.
      Returns:
      The mean value (possibly null).
    • getStdDevValue

      public Number getStdDevValue(int row, int column)
      Description copied from interface: StatisticalCategoryDataset
      Returns the standard deviation value for an item.
      Specified by:
      getStdDevValue in interface StatisticalCategoryDataset
      Parameters:
      row - the row index (zero-based).
      column - the column index (zero-based).
      Returns:
      The standard deviation (possibly null).
    • getStdDevValue

      public Number getStdDevValue(Comparable rowKey, Comparable columnKey)
      Description copied from interface: StatisticalCategoryDataset
      Returns the standard deviation value for an item.
      Specified by:
      getStdDevValue in interface StatisticalCategoryDataset
      Parameters:
      rowKey - the row key.
      columnKey - the columnKey.
      Returns:
      The standard deviation (possibly null).
    • getColumnIndex

      public int getColumnIndex(Comparable key)
      Description copied from interface: KeyedValues2D
      Returns the column index for a given key.
      Specified by:
      getColumnIndex in interface KeyedValues2D
      Parameters:
      key - the column key.
      Returns:
      The column index, or -1 if the key is unrecognised.
    • getColumnKey

      public Comparable getColumnKey(int column)
      Description copied from interface: KeyedValues2D
      Returns the column key for a given index.
      Specified by:
      getColumnKey in interface KeyedValues2D
      Parameters:
      column - the column index (zero-based).
      Returns:
      The column key.
    • getColumnKeys

      public List getColumnKeys()
      Description copied from interface: KeyedValues2D
      Returns the column keys.
      Specified by:
      getColumnKeys in interface KeyedValues2D
      Returns:
      The keys.
    • getRowIndex

      public int getRowIndex(Comparable key)
      Description copied from interface: KeyedValues2D
      Returns the row index for a given key.
      Specified by:
      getRowIndex in interface KeyedValues2D
      Parameters:
      key - the row key.
      Returns:
      The row index, or -1 if the key is unrecognised.
    • getRowKey

      public Comparable getRowKey(int row)
      Description copied from interface: KeyedValues2D
      Returns the row key for a given index.
      Specified by:
      getRowKey in interface KeyedValues2D
      Parameters:
      row - the row index (zero-based).
      Returns:
      The row key.
    • getRowKeys

      public List getRowKeys()
      Description copied from interface: KeyedValues2D
      Returns the row keys.
      Specified by:
      getRowKeys in interface KeyedValues2D
      Returns:
      The keys.
    • getValue

      public Number getValue(Comparable rowKey, Comparable columnKey)
      Description copied from interface: KeyedValues2D
      Returns the value associated with the specified keys.
      Specified by:
      getValue in interface KeyedValues2D
      Parameters:
      rowKey - the row key (null not permitted).
      columnKey - the column key (null not permitted).
      Returns:
      The value.
    • getColumnCount

      public int getColumnCount()
      Description copied from interface: Values2D
      Returns the number of columns in the table.
      Specified by:
      getColumnCount in interface Values2D
      Returns:
      The column count.
    • getRowCount

      public int getRowCount()
      Description copied from interface: Values2D
      Returns the number of rows in the table.
      Specified by:
      getRowCount in interface Values2D
      Returns:
      The row count.
    • getValue

      public Number getValue(int row, int column)
      Description copied from interface: Values2D
      Returns a value from the table.
      Specified by:
      getValue in interface Values2D
      Parameters:
      row - the row index (zero-based).
      column - the column index (zero-based).
      Returns:
      The value (possibly null).