public abstract class SampleBasedCriterion extends PrivacyCriterion
Constructor and Description |
---|
SampleBasedCriterion(boolean monotonicWithSuppression,
boolean monotonicWithGeneralization)
Instantiates a new criterion.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
enforce(org.deidentifier.arx.framework.check.groupify.HashGroupifyDistribution distribution,
int numMaxSuppressedOutliers)
This method enforces the criterion on the current hash table.
|
boolean |
isAnonymous(org.deidentifier.arx.framework.check.groupify.HashGroupifyEntry entry)
Not supported by this type of criterion
|
boolean |
isSampleBased()
Is this criterion based on the overall sample
|
clone, getRequirements, initialize, isMonotonicWithGeneralization, isMonotonicWithSuppression, toString
public SampleBasedCriterion(boolean monotonicWithSuppression, boolean monotonicWithGeneralization)
monotonicWithSuppression
- monotonicWithGeneralization
- public abstract void enforce(org.deidentifier.arx.framework.check.groupify.HashGroupifyDistribution distribution, int numMaxSuppressedOutliers)
distribution.getNumOfSuppressedTuples() > numMaxSuppressedOutliers
).distribution
- numMaxSuppressedOutliers
- public boolean isAnonymous(org.deidentifier.arx.framework.check.groupify.HashGroupifyEntry entry)
isAnonymous
in class PrivacyCriterion
entry
- public boolean isSampleBased()
PrivacyCriterion
isSampleBased
in class PrivacyCriterion