Klasse GeneralizationHierarchy
java.lang.Object
org.deidentifier.arx.framework.data.GeneralizationHierarchy
The class GeneralizationHierarchy.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected final StringName.protected final int[]Level->number of distinct values.protected final int[][]Input->level->output. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGeneralizationHierarchy(String name, String[][] hierarchy, int dimension, Dictionary dictionary) Creates a new generalization hierarchy. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcheckMonotonicity(DataManager manager) Throws an exception, if the hierarchy is not monotonic.int[][]getArray()Returns the array.int[]Returns the number of distinct values.int[]getDistinctValues(int level) Returns the distinct values.intReturns the height of the hierarchy.intReturns the number of levelsgetName()Returns the name.
-
Felddetails
-
distinctValues
protected final int[] distinctValuesLevel->number of distinct values. -
map
protected final int[][] mapInput->level->output. -
attribute
Name.
-
-
Konstruktordetails
-
GeneralizationHierarchy
public GeneralizationHierarchy(String name, String[][] hierarchy, int dimension, Dictionary dictionary) Creates a new generalization hierarchy.- Parameter:
name-hierarchy-dimension-dictionary-
-
-
Methodendetails
-
checkMonotonicity
Throws an exception, if the hierarchy is not monotonic.- Parameter:
manager-
-
getArray
public int[][] getArray()Returns the array.- Gibt zurück:
-
getDistinctValues
public int[] getDistinctValues()Returns the number of distinct values.- Gibt zurück:
-
getDistinctValues
public int[] getDistinctValues(int level) Returns the distinct values.- Parameter:
level-- Gibt zurück:
-
getHeight
public int getHeight()Returns the height of the hierarchy.- Gibt zurück:
-
getLevels
public int getLevels()Returns the number of levels -
getName
Returns the name.- Gibt zurück:
-