Klasse MetricNMEntropy

java.lang.Object
org.deidentifier.arx.metric.Metric<org.deidentifier.arx.metric.InformationLossDefault>
Alle implementierten Schnittstellen:
Serializable

public class MetricNMEntropy extends MetricEntropy
This class provides an efficient implementation of a non-monotonic and non-uniform entropy metric. It avoids a cell-by-cell process by utilizing a three-dimensional array that maps identifiers to their frequency for all quasi-identifiers and generalization levels. It further reduces the overhead induced by subsequent calls by caching the results for previous columns and generalization levels. It takes supressed tuples into account by adding the information loss induced by suppressing the transformed representation of the outliers.
Siehe auch:
  • Konstruktordetails

    • MetricNMEntropy

      protected MetricNMEntropy()
      Creates a new instance.
  • Methodendetails

    • render

      public ElementData render(ARXConfiguration config)
      Beschreibung aus Klasse kopiert: Metric
      Renders the privacy model
      Setzt außer Kraft:
      render in Klasse MetricEntropy
      Gibt zurück:
    • toString

      public String toString()
      Beschreibung aus Klasse kopiert: Metric
      Returns the name of metric.
      Setzt außer Kraft:
      toString in Klasse MetricEntropy
      Gibt zurück:
    • getInformationLossInternal

      protected InformationLossWithBound<org.deidentifier.arx.metric.InformationLossDefault> getInformationLossInternal(org.deidentifier.arx.framework.lattice.Transformation<?> node, org.deidentifier.arx.framework.check.groupify.HashGroupify g)
      Beschreibung aus Klasse kopiert: Metric
      Evaluates the metric for the given node.
      Setzt außer Kraft:
      getInformationLossInternal in Klasse MetricEntropy
      Parameter:
      node - The node for which to compute the information loss
      g - The groupify operator of the previous check
      Gibt zurück:
      the double
    • getLowerBoundInternal

      protected org.deidentifier.arx.metric.InformationLossDefault getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation<?> node)
      Beschreibung aus Klasse kopiert: Metric
      Returns a lower bound for the information loss for the given node. This can be used to expose the results of monotonic shares of a metric, which can significantly speed-up the anonymization process. If no such metric exists, simply return null.
      Setzt außer Kraft:
      getLowerBoundInternal in Klasse MetricEntropy
      Parameter:
      node -
      Gibt zurück:
    • getLowerBoundInternal

      protected org.deidentifier.arx.metric.InformationLossDefault getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation<?> node, org.deidentifier.arx.framework.check.groupify.HashGroupify groupify)
      Beschreibung aus Klasse kopiert: Metric
      Returns a lower bound for the information loss for the given node. This can be used to expose the results of monotonic shares of a metric, which can significantly speed-up the anonymization process. If no such metric exists, simply return null.

      This variant of the method allows computing a monotonic share based on a groupified data representation. IMPORTANT NOTE: The groups may not have been classified correctly when the method is called, i.e., HashGroupifyEntry.isNotOutlier may not be set correctly!
      Setzt außer Kraft:
      getLowerBoundInternal in Klasse MetricEntropy
      Parameter:
      node -
      groupify -
      Gibt zurück:
    • initializeInternal

      protected void initializeInternal(org.deidentifier.arx.framework.data.DataManager manager, DataDefinition definition, org.deidentifier.arx.framework.data.Data input, org.deidentifier.arx.framework.data.GeneralizationHierarchy[] hierarchies, ARXConfiguration config)
      Beschreibung aus Klasse kopiert: Metric
      Implement this to initialize the metric.
      Setzt außer Kraft:
      initializeInternal in Klasse MetricEntropy
      Parameter:
      manager -
      definition -
      input -
      hierarchies -
      config -