java.lang.Object
org.deidentifier.arx.framework.data.Data
Alle implementierten Schnittstellen:
Serializable, Cloneable

public class Data extends Object implements Cloneable, Serializable
Encodes a data object consisting of a dictionary encoded two-dimensional array, an associated dictionary, a header and a mapping to the columns in the input data set.
Siehe auch:
  • Felddetails

    • OUTLIER_MASK

      public static final int OUTLIER_MASK
      The outliers mask.
      Siehe auch:
    • REMOVE_OUTLIER_MASK

      public static final int REMOVE_OUTLIER_MASK
      The inverse outliers mask.
      Siehe auch:
  • Methodendetails

    • createProjection

      public static Data createProjection(DataMatrix data, String[] header, int[] columns, Dictionary dictionary)
      Creates an object which projects the given data onto the given set of columns
      Parameter:
      data -
      header -
      columns -
      dictionary -
      Gibt zurück:
    • createWrapper

      public static Data createWrapper(DataMatrix data, String[] header, int[] columns, Dictionary dictionary)
      Creates an object which simply encapsulates the provided objects
      Parameter:
      data -
      header -
      columns -
      dictionary -
      Gibt zurück:
    • clone

      public Data clone()
      Setzt außer Kraft:
      clone in Klasse Object
    • getArray

      public DataMatrix getArray()
      Returns the data array.
      Gibt zurück:
    • getColumns

      public int[] getColumns()
      Returns the set of columns from the input data set stored in this object.
      Gibt zurück:
    • getDataLength

      public int getDataLength()
      Returns the number of rows.
      Gibt zurück:
      the data length
    • getDictionary

      public Dictionary getDictionary()
      Returns the dictionary.
      Gibt zurück:
    • getHeader

      public String[] getHeader()
      Returns the header.
      Gibt zurück:
    • getIndexOf

      public int getIndexOf(String attribute)
      Returns the index of the given attribute. Returns -1 if the attribute is not contained.
      Parameter:
      attribute -
      Gibt zurück:
    • getSubsetInstance

      public Data getSubsetInstance(RowSet rowset)
      Returns a new instance that is projected onto the given subset
      Parameter:
      rowset -
      Gibt zurück:
    • isEmpty

      public boolean isEmpty()
      Returns whether this object is empty
      Gibt zurück: