public class KMap extends ImplicitPrivacyCriterion
Modifier and Type | Class and Description |
---|---|
static class |
KMap.CellSizeEstimator
Estimators for cell sizes in the population.
|
Constructor and Description |
---|
KMap(int k,
DataSubset subset)
Creates a new instance of the k-map criterion as proposed by Latanya Sweeney
|
KMap(int k,
double significanceLevel,
ARXPopulationModel populationModel)
Creates a new instance of the criterion.
|
KMap(int k,
double significanceLevel,
ARXPopulationModel populationModel,
KMap.CellSizeEstimator estimator)
Creates a new instance of the criterion.
|
Modifier and Type | Method and Description |
---|---|
KMap |
clone()
Clone
|
int |
getDerivedK()
Returns the derived parameter k.
|
KMap.CellSizeEstimator |
getEstimator()
Returns the specified estimator.
|
int |
getK()
Returns k.
|
ARXPopulationModel |
getPopulationModel()
Returns the associated population model,
null if there is none. |
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 journalist risk threshold, 1 if there is none
|
double |
getSignificanceLevel()
Returns the specified significance level.
|
DataSubset |
getSubset()
Returns a research subset,
null if no subset is available |
double |
getType1Error()
Returns the calculated type I error.
|
void |
initialize(org.deidentifier.arx.framework.data.DataManager manager)
Override this to initialize the criterion.
|
boolean |
isAccurate()
Return true if the population has been modeled explicitly.
|
boolean |
isAnonymous(org.deidentifier.arx.framework.check.groupify.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.
|
isMonotonicWithGeneralization, isMonotonicWithSuppression, isSampleBased
public KMap(int k, DataSubset subset)
k
- subset
- Research subsetpublic KMap(int k, double significanceLevel, ARXPopulationModel populationModel)
public KMap(int k, double significanceLevel, ARXPopulationModel populationModel, KMap.CellSizeEstimator estimator)
public KMap clone()
PrivacyCriterion
clone
in class PrivacyCriterion
public int getDerivedK()
public KMap.CellSizeEstimator getEstimator()
public int getK()
public ARXPopulationModel getPopulationModel()
PrivacyCriterion
null
if there is none.getPopulationModel
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 double getSignificanceLevel()
public DataSubset getSubset()
PrivacyCriterion
null
if no subset is availablegetSubset
in class PrivacyCriterion
public double getType1Error()
public void initialize(org.deidentifier.arx.framework.data.DataManager manager)
PrivacyCriterion
initialize
in class PrivacyCriterion
public boolean isAccurate()
public boolean isAnonymous(org.deidentifier.arx.framework.check.groupify.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