Klasse DataMatrixSubset

java.lang.Object
org.deidentifier.arx.framework.data.DataMatrix
org.deidentifier.arx.framework.data.DataMatrixSubset
Alle implementierten Schnittstellen:
Serializable

public class DataMatrixSubset extends DataMatrix
A subset of a data matrix
Siehe auch:
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    DataMatrixSubset(DataMatrix matrix, int[] subset)
    Creates a new instance
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    and(int row, int value)
    ANDs the first value of the row with the given value
     
    boolean
    equals(int row1, int row2)
    Compares two rows for equality
    boolean
    equals(int row, int[] data)
    Returns whether the given row has the given data
    boolean
    equalsIgnoringOutliers(int row1, int row2)
    Equals ignoring outliers
    int
    get(int row, int col)
    Returns the specified value
    int
    Returns the number of columns
    int
    Returns the number of rows
    int
    getValueAtColumn(int column)
    Gets the value in the given column for the row which has been set via setRow(row).
    int
    hashCode(int row)
    Returns an hashcode for the given row
    void
    iterator(int row)
    First iterator
    boolean
    First iterator
    int
    First iterator
    void
    iterator_write(int value)
    First iterator
    void
    or(int row, int value)
    ORs the first value of the row with the given value
    void
    set(int row, int column, int value)
    Sets a value
    void
    setRow(int row)
    Sets the row index for data access
    void
    setRow(int row, int[] data)
    Sets the data for one row
    void
    setValueAtColumn(int column, int value)
    Sets the value in the given column for the row which has been set via setRow(row).
    void
    swap(int row1, int row2)
    Swaps the data in both rows

    Von Klasse geerbte Methoden org.deidentifier.arx.framework.data.DataMatrix

    clone, copyFrom, equalsIgnore, hashCode, hashCodeIgnore

    Von Klasse geerbte Methoden java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • DataMatrixSubset

      public DataMatrixSubset(DataMatrix matrix, int[] subset)
      Creates a new instance
      Parameter:
      matrix -
      subset -
  • Methodendetails

    • and

      public void and(int row, int value)
      Beschreibung aus Klasse kopiert: DataMatrix
      ANDs the first value of the row with the given value
      Setzt außer Kraft:
      and in Klasse DataMatrix
      Parameter:
      row -
      value -
    • clone

      public DataMatrix clone()
      Setzt außer Kraft:
      clone in Klasse DataMatrix
    • equals

      public boolean equals(int row1, int row2)
      Beschreibung aus Klasse kopiert: DataMatrix
      Compares two rows for equality
      Setzt außer Kraft:
      equals in Klasse DataMatrix
      Parameter:
      row1 -
      row2 -
      Gibt zurück:
    • equals

      public boolean equals(int row, int[] data)
      Beschreibung aus Klasse kopiert: DataMatrix
      Returns whether the given row has the given data
      Setzt außer Kraft:
      equals in Klasse DataMatrix
      Parameter:
      row -
      data -
      Gibt zurück:
    • equalsIgnoringOutliers

      public boolean equalsIgnoringOutliers(int row1, int row2)
      Beschreibung aus Klasse kopiert: DataMatrix
      Equals ignoring outliers
      Setzt außer Kraft:
      equalsIgnoringOutliers in Klasse DataMatrix
      Parameter:
      row1 -
      row2 -
      Gibt zurück:
    • get

      public int get(int row, int col)
      Beschreibung aus Klasse kopiert: DataMatrix
      Returns the specified value
      Setzt außer Kraft:
      get in Klasse DataMatrix
      Parameter:
      row -
      col -
      Gibt zurück:
    • getNumColumns

      public int getNumColumns()
      Beschreibung aus Klasse kopiert: DataMatrix
      Returns the number of columns
      Setzt außer Kraft:
      getNumColumns in Klasse DataMatrix
      Gibt zurück:
    • getNumRows

      public int getNumRows()
      Beschreibung aus Klasse kopiert: DataMatrix
      Returns the number of rows
      Setzt außer Kraft:
      getNumRows in Klasse DataMatrix
      Gibt zurück:
    • getValueAtColumn

      public int getValueAtColumn(int column)
      Beschreibung aus Klasse kopiert: DataMatrix
      Gets the value in the given column for the row which has been set via setRow(row).
      Setzt außer Kraft:
      getValueAtColumn in Klasse DataMatrix
      Parameter:
      column -
    • hashCode

      public int hashCode(int row)
      Beschreibung aus Klasse kopiert: DataMatrix
      Returns an hashcode for the given row
      Setzt außer Kraft:
      hashCode in Klasse DataMatrix
      Parameter:
      row -
      Gibt zurück:
    • iterator

      public void iterator(int row)
      Beschreibung aus Klasse kopiert: DataMatrix
      First iterator
      Setzt außer Kraft:
      iterator in Klasse DataMatrix
      Parameter:
      row -
    • iterator_hasNext

      public boolean iterator_hasNext()
      Beschreibung aus Klasse kopiert: DataMatrix
      First iterator
      Setzt außer Kraft:
      iterator_hasNext in Klasse DataMatrix
      Gibt zurück:
    • iterator_next

      public int iterator_next()
      Beschreibung aus Klasse kopiert: DataMatrix
      First iterator
      Setzt außer Kraft:
      iterator_next in Klasse DataMatrix
      Gibt zurück:
    • iterator_write

      public void iterator_write(int value)
      Beschreibung aus Klasse kopiert: DataMatrix
      First iterator
      Setzt außer Kraft:
      iterator_write in Klasse DataMatrix
      Parameter:
      value -
    • or

      public void or(int row, int value)
      Beschreibung aus Klasse kopiert: DataMatrix
      ORs the first value of the row with the given value
      Setzt außer Kraft:
      or in Klasse DataMatrix
      Parameter:
      row -
      value -
    • set

      public void set(int row, int column, int value)
      Beschreibung aus Klasse kopiert: DataMatrix
      Sets a value
      Setzt außer Kraft:
      set in Klasse DataMatrix
      Parameter:
      row -
      column -
      value -
    • setRow

      public void setRow(int row)
      Beschreibung aus Klasse kopiert: DataMatrix
      Sets the row index for data access
      Setzt außer Kraft:
      setRow in Klasse DataMatrix
      Parameter:
      row -
    • setRow

      public void setRow(int row, int[] data)
      Beschreibung aus Klasse kopiert: DataMatrix
      Sets the data for one row
      Setzt außer Kraft:
      setRow in Klasse DataMatrix
      Parameter:
      row -
      data -
    • setValueAtColumn

      public void setValueAtColumn(int column, int value)
      Beschreibung aus Klasse kopiert: DataMatrix
      Sets the value in the given column for the row which has been set via setRow(row).
      Setzt außer Kraft:
      setValueAtColumn in Klasse DataMatrix
      Parameter:
      column -
      value -
    • swap

      public void swap(int row1, int row2)
      Beschreibung aus Klasse kopiert: DataMatrix
      Swaps the data in both rows
      Setzt außer Kraft:
      swap in Klasse DataMatrix
      Parameter:
      row1 -
      row2 -