public class KAnonymity extends ImplicitPrivacyCriterion
Constructor and Description |
---|
KAnonymity(int k)
Creates a new instance of the k-anonymity criterion as proposed in
Sweeney L. k-Anonymity: A model for protecting privacy.
|
Modifier and Type | Method and Description |
---|---|
KAnonymity |
clone()
Clone
|
int |
getK()
Returns the parameter k.
|
int |
getRequirements()
Returns the criterion's requirements.
|
double |
getRiskThresholdJournalist()
Return journalist risk threshold, 1 if there is none
|
double |
getRiskThresholdMarketer()
Return marketer risk threshold, 1 if there is none
|
double |
getRiskThresholdProsecutor()
Return prosecutor risk threshold, 1 if there is none
|
boolean |
isAnonymous(HashGroupifyEntry entry)
Implement this, to enforce the criterion.
|
boolean |
isLocalRecodingSupported()
Returns whether the criterion supports local recoding.
|
java.lang.String |
toString()
Returns a string representation.
|
getPopulationModel, getSubset, initialize, isMonotonicWithGeneralization, isMonotonicWithSuppression, isSampleBased
public KAnonymity(int k)
k
- public KAnonymity clone()
PrivacyCriterion
clone
in class PrivacyCriterion
public int getK()
public int getRequirements()
PrivacyCriterion
getRequirements
in class PrivacyCriterion
public boolean isAnonymous(HashGroupifyEntry entry)
PrivacyCriterion
isAnonymous
in class PrivacyCriterion
public boolean isLocalRecodingSupported()
PrivacyCriterion
isLocalRecodingSupported
in class PrivacyCriterion
public java.lang.String toString()
PrivacyCriterion
toString
in class PrivacyCriterion
public double getRiskThresholdProsecutor()
getRiskThresholdProsecutor
in class PrivacyCriterion
public double getRiskThresholdJournalist()
getRiskThresholdJournalist
in class PrivacyCriterion
public double getRiskThresholdMarketer()
getRiskThresholdMarketer
in class PrivacyCriterion