Package org.deidentifier.arx.risk
Klasse RiskModelHistogram
java.lang.Object
org.deidentifier.arx.risk.RiskModelHistogram
This class encapsulates information about equivalence classes in a data set
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRiskModelHistogram(com.carrotsearch.hppc.IntIntOpenHashMap distribution) Creates a new instance from the given distribution. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoubleReturns a property of the class distributionint[]Returns class-size[idx], class-count[idx+1],... ordered ascending by class sizedoubleReturns a property of the class distributiondoubleReturns a property of the class distributionbooleanisEmpty()Returns whether the histogram is empty
-
Konstruktordetails
-
RiskModelHistogram
public RiskModelHistogram(com.carrotsearch.hppc.IntIntOpenHashMap distribution) Creates a new instance from the given distribution. IMPORTANT: Suppressed records should have been ignored before calling this.- Parameter:
distribution-
-
-
Methodendetails
-
getAvgClassSize
public double getAvgClassSize()Returns a property of the class distribution- Gibt zurück:
- the avgClassSize
-
getHistogram
public int[] getHistogram()Returns class-size[idx], class-count[idx+1],... ordered ascending by class size- Gibt zurück:
- the histogram
-
getNumClasses
public double getNumClasses()Returns a property of the class distribution- Gibt zurück:
- the numClasses
-
getNumRecords
public double getNumRecords()Returns a property of the class distribution- Gibt zurück:
- the numRecords
-
isEmpty
public boolean isEmpty()Returns whether the histogram is empty- Gibt zurück:
-