public class DataManagerSubset extends DataManager
DataManager.AttributeTypeInternal
Modifier | Constructor and Description |
---|---|
protected |
DataManagerSubset(DataManager source,
Data dataAnalyzed,
Data dataGeneralized,
Data dataStatic,
java.lang.String[] header,
GeneralizationHierarchy[] hierarchiesGeneralized,
int[] hierarchiesHeights,
java.util.Map<java.lang.String,GeneralizationHierarchy> hierarchiesSensitive,
java.util.Map<java.lang.String,java.lang.Integer> indexesSensitive,
int[] maxLevels,
DistributionAggregateFunction[] microaggregationFunctions,
java.lang.String[] microaggregationHeader,
int[] microaggregationMap,
int[] microaggregationDomainSizes,
int microaggregationNumAttributes,
int microaggregationStartIndex,
int[] minLevels,
java.util.Map<java.lang.String,DataType<?>> dataTypesSensitive)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double[] |
getDistribution(int[][] data,
int index,
int distinctValues)
Returns the distribution of the attribute in the data array at the given index.
|
double[] |
getDistribution(java.lang.String attribute)
Returns the distribution of the given sensitive attribute in the original dataset.
|
int[] |
getOrder(java.lang.String attribute)
Returns the order of the given sensitive attribute in the original dataset.
|
int[] |
getTree(int[][] data,
int index,
int[][] hierarchy)
Returns a tree for the given attribute at the index within the given data array, using the given hierarchy.
|
int[] |
getTree(java.lang.String attribute)
Returns the tree for the given sensitive attribute, if a generalization hierarchy is associated.
|
getDataAnalyzed, getDataDefinition, getDataGeneralized, getDataStatic, getDomainShares, getHeader, getHierachiesHeights, getHierarchies, getHierarchiesMaxLevels, getHierarchiesMinLevels, getMicroaggregationDomainSizes, getMicroaggregationFunctions, getMicroaggregationHeader, getMicroaggregationMap, getMicroaggregationNumAttributes, getMicroaggregationStartIndex, getSubsetInstance
protected DataManagerSubset(DataManager source, Data dataAnalyzed, Data dataGeneralized, Data dataStatic, java.lang.String[] header, GeneralizationHierarchy[] hierarchiesGeneralized, int[] hierarchiesHeights, java.util.Map<java.lang.String,GeneralizationHierarchy> hierarchiesSensitive, java.util.Map<java.lang.String,java.lang.Integer> indexesSensitive, int[] maxLevels, DistributionAggregateFunction[] microaggregationFunctions, java.lang.String[] microaggregationHeader, int[] microaggregationMap, int[] microaggregationDomainSizes, int microaggregationNumAttributes, int microaggregationStartIndex, int[] minLevels, java.util.Map<java.lang.String,DataType<?>> dataTypesSensitive)
source
- dataAnalyzed
- dataGeneralized
- dataStatic
- header
- hierarchiesGeneralized
- hierarchiesHeights
- hierarchiesSensitive
- indexesSensitive
- maxLevels
- microaggregationFunctions
- microaggregationHeader
- microaggregationMap
- microaggregationNumAttributes
- microaggregationStartIndex
- minLevels
- dataTypesSensitive
- public double[] getDistribution(int[][] data, int index, int distinctValues)
DataManager
getDistribution
in class DataManager
public double[] getDistribution(java.lang.String attribute)
DataManager
getDistribution
in class DataManager
public int[] getOrder(java.lang.String attribute)
DataManager
getOrder
in class DataManager
public int[] getTree(int[][] data, int index, int[][] hierarchy)
DataManager
getTree
in class DataManager
public int[] getTree(java.lang.String attribute)
DataManager
getTree
in class DataManager