public abstract class LDiversity extends ExplicitPrivacyCriterion
Modifier and Type | Field and Description |
---|---|
protected double |
l
The parameter l.
|
protected int |
minSize
The derived minimal size of a class
|
attribute, index
Constructor and Description |
---|
LDiversity(java.lang.String attribute,
double l,
boolean monotonicWithSuppression,
boolean monotonicWithGeneralization)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getL()
Returns the parameter l.
|
int |
getMinimalClassSize()
If a privacy model provides a prosecutor risk threshold, it should override this method to enable optimizations
|
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 |
isMinimalClassSizeAvailable()
If a privacy model provides a prosecutor risk threshold, it should override this method to enable optimizations
|
getAttribute, initialize
clone, clone, getDataSubset, getPopulationModel, getSubset, isAnonymous, isLocalRecodingSupported, isMonotonicWithGeneralization, isMonotonicWithSuppression, isSampleBased, isSubsetAvailable, toString
protected final double l
protected final int minSize
public LDiversity(java.lang.String attribute, double l, boolean monotonicWithSuppression, boolean monotonicWithGeneralization)
attribute
- l
- monotonicWithSuppression
- monotonicWithGeneralization
- public double getL()
public int getMinimalClassSize()
PrivacyCriterion
getMinimalClassSize
in class PrivacyCriterion
public int getRequirements()
PrivacyCriterion
getRequirements
in class PrivacyCriterion
public double getRiskThresholdJournalist()
getRiskThresholdJournalist
in class PrivacyCriterion
public double getRiskThresholdMarketer()
getRiskThresholdMarketer
in class PrivacyCriterion
public double getRiskThresholdProsecutor()
getRiskThresholdProsecutor
in class PrivacyCriterion
public boolean isMinimalClassSizeAvailable()
PrivacyCriterion
isMinimalClassSizeAvailable
in class PrivacyCriterion