Klasse KMap

Alle implementierten Schnittstellen:
Serializable

public class KMap extends ImplicitPrivacyCriterion
This class implements the k-map privacy model as proposed by Latanya Sweeney.

As an alternative to explicitly providing data about the underlying population, cell sizes can be can be estimated with the D3 (Poisson) and D4 (zero-truncated Poisson) estimators proposed in:
K. El Emam and F. Dankar, "Protecting privacy using k-anonymity" JAMIA, vol. 15, no. 5, pp. 627-637, 2008.

The estimator D3 was first published in:
J. Pannekoek, "Statistical methods for some simple disclosure limitation rules," Statistica Neerlandica, vol. 53, no. 1, pp. 55-67, 1999.
Siehe auch:
  • Konstruktordetails

    • KMap

      public KMap(int k, DataSubset subset)
      Creates a new instance of the k-map criterion as proposed by Latanya Sweeney
      Parameter:
      k -
      subset - Research subset
    • KMap

      public KMap(int k, double significanceLevel, ARXPopulationModel populationModel)
      Creates a new instance of the criterion using thr Poisson estimator proposed by Pannekoek.
    • KMap

      public KMap(int k, double significanceLevel, ARXPopulationModel populationModel, KMap.CellSizeEstimator estimator)
      Creates a new instance of the criterion using the Poisson estimator proposed by Pannekoek or by El Emam.
  • Methodendetails

    • clone

      public KMap clone()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Clone
      Angegeben von:
      clone in Klasse PrivacyCriterion
    • clone

      public PrivacyCriterion clone(DataSubset subset)
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Clone for local recoding
      Setzt außer Kraft:
      clone in Klasse PrivacyCriterion
    • getDataSubset

      public DataSubset getDataSubset()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      If a privacy model uses a data subset, it must overwrite this method
      Setzt außer Kraft:
      getDataSubset in Klasse PrivacyCriterion
      Gibt zurück:
    • getDerivedK

      public int getDerivedK()
      Returns the derived parameter k.
      Gibt zurück:
    • getEstimator

      public KMap.CellSizeEstimator getEstimator()
      Returns the specified estimator.
      Gibt zurück:
    • getK

      public int getK()
      Returns k.
      Gibt zurück:
    • getMinimalClassSize

      public int getMinimalClassSize()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      If a privacy model provides a prosecutor risk threshold, it should override this method to enable optimizations
      Setzt außer Kraft:
      getMinimalClassSize in Klasse PrivacyCriterion
      Gibt zurück:
    • getPopulationModel

      public ARXPopulationModel getPopulationModel()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Returns the associated population model, null if there is none.
      Setzt außer Kraft:
      getPopulationModel in Klasse PrivacyCriterion
      Gibt zurück:
      the populationModel
    • getRequirements

      public int getRequirements()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Returns the criterion's requirements.
      Angegeben von:
      getRequirements in Klasse PrivacyCriterion
      Gibt zurück:
    • getRiskThresholdJournalist

      public double getRiskThresholdJournalist()
      Return journalist risk threshold, 1 if there is none
      Setzt außer Kraft:
      getRiskThresholdJournalist in Klasse PrivacyCriterion
      Gibt zurück:
    • getRiskThresholdMarketer

      public double getRiskThresholdMarketer()
      Return marketer risk threshold, 1 if there is none
      Setzt außer Kraft:
      getRiskThresholdMarketer in Klasse PrivacyCriterion
      Gibt zurück:
    • getRiskThresholdProsecutor

      public double getRiskThresholdProsecutor()
      Return journalist risk threshold, 1 if there is none
      Setzt außer Kraft:
      getRiskThresholdProsecutor in Klasse PrivacyCriterion
      Gibt zurück:
    • getSignificanceLevel

      public double getSignificanceLevel()
      Returns the specified significance level.
      Gibt zurück:
    • getType1Error

      public double getType1Error()
      Returns the calculated type I error.
      Gibt zurück:
    • initialize

      public void initialize(DataManager manager, ARXConfiguration config)
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Override this to initialize the criterion.
      Setzt außer Kraft:
      initialize in Klasse PrivacyCriterion
      Parameter:
      manager -
      config - TODO
    • isAccurate

      public boolean isAccurate()
      Return true if the population has been modeled explicitly. This implies that no approximation is performed.
      Gibt zurück:
    • isAnonymous

      public boolean isAnonymous(Transformation<?> node, HashGroupifyEntry entry)
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Implement this, to enforce the criterion.
      Angegeben von:
      isAnonymous in Klasse PrivacyCriterion
      Parameter:
      node - TODO
      entry -
      Gibt zurück:
    • isLocalRecodingSupported

      public boolean isLocalRecodingSupported()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Returns whether the criterion supports local recoding.
      Angegeben von:
      isLocalRecodingSupported in Klasse PrivacyCriterion
      Gibt zurück:
    • isMinimalClassSizeAvailable

      public boolean isMinimalClassSizeAvailable()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      If a privacy model provides a prosecutor risk threshold, it should override this method to enable optimizations
      Setzt außer Kraft:
      isMinimalClassSizeAvailable in Klasse PrivacyCriterion
      Gibt zurück:
    • isSubsetAvailable

      public boolean isSubsetAvailable()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      If a privacy model uses a data subset, it must overwrite this method
      Setzt außer Kraft:
      isSubsetAvailable in Klasse PrivacyCriterion
      Gibt zurück:
    • render

      public ElementData render()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Renders the privacy model
      Angegeben von:
      render in Klasse PrivacyCriterion
      Gibt zurück:
    • toString

      public String toString()
      Beschreibung aus Klasse kopiert: PrivacyCriterion
      Returns a string representation.
      Angegeben von:
      toString in Klasse PrivacyCriterion
      Gibt zurück: