Klasse AbstractMetricMultiDimensional

java.lang.Object
org.deidentifier.arx.metric.Metric<AbstractILMultiDimensional>
org.deidentifier.arx.metric.v2.AbstractMetricMultiDimensional
Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
AbstractMetricMultiDimensionalPotentiallyPrecomputed, MetricMDHeight, MetricMDNMLoss, MetricMDNMPrecision, MetricMDNUEntropyPrecomputed, MetricMDStatic

public abstract class AbstractMetricMultiDimensional extends Metric<AbstractILMultiDimensional>
This class provides an abstract skeleton for the implementation of multi-dimensional metrics.
Siehe auch:
  • Felddetails

    • k

      protected int k
      Minimal size of equivalence classes enforced by the differential privacy model
  • Methodendetails

    • createMaxInformationLoss

      public InformationLoss<?> createMaxInformationLoss()
      Beschreibung aus Klasse kopiert: Metric
      Returns an instance of the maximal value.
      Angegeben von:
      createMaxInformationLoss in Klasse Metric<AbstractILMultiDimensional>
      Gibt zurück:
    • createMinInformationLoss

      public InformationLoss<?> createMinInformationLoss()
      Beschreibung aus Klasse kopiert: Metric
      Returns an instance of the minimal value.
      Angegeben von:
      createMinInformationLoss in Klasse Metric<AbstractILMultiDimensional>
      Gibt zurück:
    • getAggregateFunction

      public Metric.AggregateFunction getAggregateFunction()
      Beschreibung aus Klasse kopiert: Metric
      Returns the aggregate function of a multi-dimensional metric, null otherwise.
      Setzt außer Kraft:
      getAggregateFunction in Klasse Metric<AbstractILMultiDimensional>
      Gibt zurück:
    • createInformationLoss

      protected AbstractILMultiDimensional createInformationLoss(double[] values)
      Helper method for creating information loss.
      Parameter:
      values -
      Gibt zurück:
    • getAggregationFunctionsGeneralized

      protected DistributionAggregateFunction[] getAggregationFunctionsGeneralized()
      Returns relevant aggregation functions
      Gibt zurück:
    • getAggregationFunctionsNonGeneralized

      protected DistributionAggregateFunction[] getAggregationFunctionsNonGeneralized()
      Returns relevant aggregation functions
      Gibt zurück:
    • getAggregationIndicesGeneralized

      protected int[] getAggregationIndicesGeneralized()
      Returns the indicies of aggregated variables
      Gibt zurück:
    • getAggregationIndicesNonGeneralized

      protected int[] getAggregationIndicesNonGeneralized()
      Returns the indicies of aggregated variables
      Gibt zurück:
    • getAggregationInformation

      protected DataAggregationInformation getAggregationInformation()
      Needed for microaggregation
      Gibt zurück:
    • getDimensions

      protected int getDimensions()
      Returns the number of dimensions.
      Gibt zurück:
    • getDimensionsAggregated

      protected int getDimensionsAggregated()
      Returns the number of dimensions.
      Gibt zurück:
    • getDimensionsGeneralized

      protected int getDimensionsGeneralized()
      Returns the number of dimensions.
      Gibt zurück:
    • initialize

      protected void initialize(int dimensions)
      For backwards compatibility only.
      Parameter:
      dimensions -
    • 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<AbstractILMultiDimensional>
      Parameter:
      manager -
      definition -
      input -
      hierarchies -
      config -
    • setMax

      protected void setMax(double[] max)
      Sets the maximal information loss.
      Parameter:
      max -
    • setMin

      protected void setMin(double[] min)
      Sets the minimal information loss.
      Parameter:
      min -