public class EntropyLDiversity extends LDiversity
Modifier and Type | Class and Description |
---|---|
static class |
EntropyLDiversity.EntropyEstimator
Enumerator of entropy estimators for the entropy-l-diversity privacy model.
|
Constructor and Description |
---|
EntropyLDiversity(java.lang.String attribute,
double l)
Creates a new instance of the entropy l-diversity model as proposed in:
Machanavajjhala A, Kifer D, Gehrke J. l-diversity: Privacy beyond k-anonymity. |
EntropyLDiversity(java.lang.String attribute,
double l,
EntropyLDiversity.EntropyEstimator estimator)
Creates a new instance of the entropy-l-diversity privacy model,
specifying the entropy estimator be to used.
|
Modifier and Type | Method and Description |
---|---|
EntropyLDiversity |
clone()
Clone
|
EntropyLDiversity.EntropyEstimator |
getEstimator()
Returns the entropy estimator used by this instance
|
boolean |
isAnonymous(Transformation<?> node,
HashGroupifyEntry entry)
Implement this, to enforce the criterion.
|
boolean |
isLocalRecodingSupported()
Returns whether the criterion supports local recoding.
|
ElementData |
render()
Renders the privacy model
|
java.lang.String |
toString()
Returns a string representation.
|
getL, getMinimalClassSize, getRequirements, getRiskThresholdJournalist, getRiskThresholdMarketer, getRiskThresholdProsecutor, isMinimalClassSizeAvailable
getAttribute, initialize
clone, getDataSubset, getPopulationModel, getSubset, isHeuristicSearchSupported, isHeuristicSearchWithTimeLimitSupported, isMonotonicWithGeneralization, isMonotonicWithSuppression, isOptimalSearchSupported, isSampleBased, isSubsetAvailable
public EntropyLDiversity(java.lang.String attribute, double l)
attribute
- l
- public EntropyLDiversity(java.lang.String attribute, double l, EntropyLDiversity.EntropyEstimator estimator)
attribute
- The sensitive attributel
- Security parameterestimator
- Entropy estimator (SHANNON or GRASSBERGER)public EntropyLDiversity clone()
PrivacyCriterion
clone
in class PrivacyCriterion
public EntropyLDiversity.EntropyEstimator getEstimator()
public boolean isAnonymous(Transformation<?> node, HashGroupifyEntry entry)
PrivacyCriterion
isAnonymous
in class PrivacyCriterion
node
- TODOpublic boolean isLocalRecodingSupported()
PrivacyCriterion
isLocalRecodingSupported
in class PrivacyCriterion
public ElementData render()
PrivacyCriterion
render
in class PrivacyCriterion
public java.lang.String toString()
PrivacyCriterion
toString
in class PrivacyCriterion