Klasse MetricWeighted<T extends InformationLoss<?>>

java.lang.Object
org.deidentifier.arx.metric.Metric<T>
org.deidentifier.arx.metric.MetricWeighted<T>
Typparameter:
T -
Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
MetricNMPrecision, MetricPrecision, MetricStatic

public abstract class MetricWeighted<T extends InformationLoss<?>> extends Metric<T>
This class provides an abstract skeleton for the implementation of weighted metrics.
Siehe auch:
  • Felddetails

    • weights

      protected double[] weights
      The weights.
  • Konstruktordetails

    • MetricWeighted

      public MetricWeighted(boolean monotonicWithGeneralization, boolean monotonicWithSuppression, boolean independent)
      Constructor.
      Parameter:
      monotonicWithGeneralization -
      monotonicWithSuppression -
      independent -
  • Methodendetails

    • getLowerBoundInternal

      protected T getLowerBoundInternal(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.
      Angegeben von:
      getLowerBoundInternal in Klasse Metric<T extends InformationLoss<?>>
      Parameter:
      node -
      Gibt zurück:
    • getLowerBoundInternal

      protected T getLowerBoundInternal(Transformation<?> node, 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!
      Angegeben von:
      getLowerBoundInternal in Klasse Metric<T extends InformationLoss<?>>
      Parameter:
      node -
      groupify -
      Gibt zurück:
    • initializeInternal

      protected void initializeInternal(DataManager manager, DataDefinition definition, Data input, GeneralizationHierarchy[] hierarchies, ARXConfiguration config)
      Beschreibung aus Klasse kopiert: Metric
      Implement this to initialize the metric.
      Angegeben von:
      initializeInternal in Klasse Metric<T extends InformationLoss<?>>
      Parameter:
      manager -
      definition -
      input -
      hierarchies -
      config -