Klasse DataManager
java.lang.Object
org.deidentifier.arx.framework.data.DataManager
- Bekannte direkte Unterklassen:
DataManagerSubset
Holds all data needed for the anonymization process.
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungDataManager(String[] header, DataMatrix data, Dictionary dictionary, DataDefinition definition, Map<String, DistributionAggregateFunction> functions, ARXConfiguration config) Creates a new data manager from pre-encoded data.protectedDataManager(Data dataAnalyzed, Data dataGeneralized, Data dataInput, DataDefinition definition, DomainShare[] shares, String[] header, GeneralizationHierarchy[] hierarchiesGeneralized, GeneralizationHierarchy[] hierarchiesAnalyzed, int[] generalizationLevelsMinimum, int[] generalizationLevelsMaximum, DataAggregationInformation microaggregationData) For creating a projected instance -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns data configuring microaggregationReturns the input data that will be analyzed.protected DataDefinitionReturns the data definitionsReturns the input data that will be generalized.Returns the input data.double[]getDistribution(String attribute) Returns the distribution of the given sensitive attribute in the original dataset.double[]getDistribution(DataMatrix dataMatrix, int index, int distinctValues) Returns the distribution of the attribute in the data array at the given index.Returns the domain shares for all generalized quasi-identifiersReturns the reliable domain shares for all generalized quasi-identifiersString[]The original data header.int[]Returns the heights of the hierarchies used for generalizing quasi-identifiersReturns the generalization hierarchiesQI.int[]Returns the maximum levels for the generalizaiton.int[]Returns the minimum levels for the generalizations.int[]Returns the order of the given sensitive attribute in the original dataset.getSubsetInstance(RowSet rowset) Returns an instance of this data manager, that is projected onto the given rowsetint[]Returns the tree for the given sensitive attribute, if a generalization hierarchy is associated.int[]getTree(DataMatrix data, int index, int[][] hierarchy) Returns a tree for the given attribute at the index within the given data array, using the given hierarchy.
-
Konstruktordetails
-
DataManager
public DataManager(String[] header, DataMatrix data, Dictionary dictionary, DataDefinition definition, Map<String, DistributionAggregateFunction> functions, ARXConfiguration config) Creates a new data manager from pre-encoded data.- Parameter:
header-data-dictionary-definition-functions-config-
-
-
Methodendetails
-
getDataAnalyzed
Returns the input data that will be analyzed.- Gibt zurück:
- the data
-
getDataGeneralized
Returns the input data that will be generalized.- Gibt zurück:
- the data
-
getDataInput
Returns the input data.- Gibt zurück:
- the data
-
getDistribution
Returns the distribution of the attribute in the data array at the given index.- Parameter:
dataMatrix-index-distinctValues-- Gibt zurück:
-
getDistribution
Returns the distribution of the given sensitive attribute in the original dataset. Required for t-closeness.- Parameter:
attribute-- Gibt zurück:
- distribution
-
getHeader
The original data header.- Gibt zurück:
-
getHierachiesHeights
public int[] getHierachiesHeights()Returns the heights of the hierarchies used for generalizing quasi-identifiers- Gibt zurück:
-
getHierarchies
Returns the generalization hierarchiesQI.- Gibt zurück:
- the hierarchiesQI
-
getHierarchiesMaxLevels
public int[] getHierarchiesMaxLevels()Returns the maximum levels for the generalizaiton.- Gibt zurück:
- the maximum level for each QI
-
getHierarchiesMinLevels
public int[] getHierarchiesMinLevels()Returns the minimum levels for the generalizations.- Gibt zurück:
-
getAggregationInformation
Returns data configuring microaggregation- Gibt zurück:
-
getOrder
Returns the order of the given sensitive attribute in the original dataset. Required for t-closeness.- Parameter:
attribute-- Gibt zurück:
- distribution
-
getSubsetInstance
Returns an instance of this data manager, that is projected onto the given rowset- Parameter:
rowset-- Gibt zurück:
-
getTree
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.- Parameter:
data-index-hierarchy-- Gibt zurück:
- tree
-
getTree
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.- Parameter:
attribute-- Gibt zurück:
- tree
-
getDataDefinition
Returns the data definitions- Gibt zurück:
-