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(HashGroupifyDistribution distribution,
int numMaxSuppressedOutliers)
This method enforces the criterion on the current hash table.
|
boolean |
isAnonymous(Transformation<?> node,
HashGroupifyEntry entry)
Not supported by this type of criterion
|
boolean |
isSampleBased()
Is this criterion based on the overall sample
|
clone, clone, getDataSubset, getMinimalClassSize, getPopulationModel, getRequirements, getRiskThresholdJournalist, getRiskThresholdMarketer, getRiskThresholdProsecutor, getSubset, initialize, isHeuristicSearchSupported, isHeuristicSearchWithTimeLimitSupported, isLocalRecodingSupported, isMinimalClassSizeAvailable, isMonotonicWithGeneralization, isMonotonicWithSuppression, isOptimalSearchSupported, isSubsetAvailable, render, toString
public SampleBasedCriterion(boolean monotonicWithSuppression, boolean monotonicWithGeneralization)
monotonicWithSuppression
- monotonicWithGeneralization
- public abstract void enforce(HashGroupifyDistribution distribution, int numMaxSuppressedOutliers)
distribution.getNumOfSuppressedTuples() > numMaxSuppressedOutliers
).distribution
- numMaxSuppressedOutliers
- public boolean isAnonymous(Transformation<?> node, HashGroupifyEntry entry)
isAnonymous
in class PrivacyCriterion
entry
- node
- TODOpublic boolean isSampleBased()
PrivacyCriterion
isSampleBased
in class PrivacyCriterion