public class HashGroupifyDistribution
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
HashGroupifyDistribution.PrivacyCondition
A condition that may or may not be fulfilled for the distribution
|
Modifier and Type | Method and Description |
---|---|
double |
getAverageClassSize()
Returns the average class size
|
double |
getFractionOfRecordsInClassesOfSize(int size)
Returns the fraction of tuples that are in classes of the given size
|
RiskModelHistogram |
getHistogram()
Returns a set of classes as an input for the risk model
|
int |
internalGetNumSuppressedRecords()
Returns the number of suppressed records.
|
boolean |
isEmpty()
Returns whether there are no records to consider
|
void |
suppressWhileNotFulfilledBinary(HashGroupifyDistribution.PrivacyCondition condition)
Suppresses entries until the condition is fulfilled
|
void |
suppressWhileNotFulfilledLinear(HashGroupifyDistribution.PrivacyCondition condition)
Suppresses entries until the condition is fulfilled
|
public double getAverageClassSize()
public double getFractionOfRecordsInClassesOfSize(int size)
size
- public RiskModelHistogram getHistogram()
public int internalGetNumSuppressedRecords()
public boolean isEmpty()
public void suppressWhileNotFulfilledBinary(HashGroupifyDistribution.PrivacyCondition condition)
condition
- public void suppressWhileNotFulfilledLinear(HashGroupifyDistribution.PrivacyCondition condition)
condition
-