Klasse DataManagerSubset

java.lang.Object
org.deidentifier.arx.framework.data.DataManager
org.deidentifier.arx.framework.data.DataManagerSubset

public class DataManagerSubset extends DataManager
A data manager that is projected onto a given subset. Used for post-optimization.
  • Konstruktordetails

    • DataManagerSubset

      protected DataManagerSubset(DataManager source, Data dataAnalyzed, Data dataGeneralized, Data dataInput, DataDefinition definition, DomainShare[] shares, String[] header, GeneralizationHierarchy[] hierarchiesGeneralized, GeneralizationHierarchy[] hierarchiesAnalyzed, int[] generalizationLevelsMinimum, int[] generalizationLevelsMaximum, DataAggregationInformation microaggregationData)
      Constructor
      Parameter:
      source -
      dataAnalyzed -
      dataGeneralized -
      dataInput -
      definition -
      shares -
      header -
      hierarchiesGeneralized -
      hierarchiesAnalyzed -
      generalizationLevelsMinimum -
      generalizationLevelsMaximum -
      microaggregationData -
  • Methodendetails

    • getDistribution

      public double[] getDistribution(DataMatrix data, int index, int distinctValues)
      Beschreibung aus Klasse kopiert: DataManager
      Returns the distribution of the attribute in the data array at the given index.
      Setzt außer Kraft:
      getDistribution in Klasse DataManager
      Parameter:
      data -
      index -
      distinctValues -
      Gibt zurück:
    • getDistribution

      public double[] getDistribution(String attribute)
      Beschreibung aus Klasse kopiert: DataManager
      Returns the distribution of the given sensitive attribute in the original dataset. Required for t-closeness.
      Setzt außer Kraft:
      getDistribution in Klasse DataManager
      Parameter:
      attribute -
      Gibt zurück:
      distribution
    • getOrder

      public int[] getOrder(String attribute)
      Beschreibung aus Klasse kopiert: DataManager
      Returns the order of the given sensitive attribute in the original dataset. Required for t-closeness.
      Setzt außer Kraft:
      getOrder in Klasse DataManager
      Parameter:
      attribute -
      Gibt zurück:
      distribution
    • getTree

      public int[] getTree(DataMatrix data, int index, int[][] hierarchy)
      Beschreibung aus Klasse kopiert: DataManager
      Returns a tree for the given attribute at the index within the given data array, using the given hierarchy. The resulting tree can be used to calculate the earth mover's distance with hierarchical ground-distance.
      Setzt außer Kraft:
      getTree in Klasse DataManager
      Parameter:
      data -
      index -
      hierarchy -
      Gibt zurück:
      tree
    • getTree

      public int[] getTree(String attribute)
      Beschreibung aus Klasse kopiert: DataManager
      Returns the tree for the given sensitive attribute, if a generalization hierarchy is associated. The resulting tree can be used to calculate the earth mover's distance with hierarchical ground-distance.
      Setzt außer Kraft:
      getTree in Klasse DataManager
      Parameter:
      attribute -
      Gibt zurück:
      tree