Klasse AbstractMetricSingleDimensional

java.lang.Object
org.deidentifier.arx.metric.Metric<ILSingleDimensional>
org.deidentifier.arx.metric.v2.AbstractMetricSingleDimensional
Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
MetricSDAECS, MetricSDClassification, MetricSDNMAmbiguity, MetricSDNMDiscernability, MetricSDNMEntropyBasedInformationLoss, MetricSDNMKLDivergence, MetricSDNMPublisherPayout

public abstract class AbstractMetricSingleDimensional extends Metric<ILSingleDimensional>
This class provides an abstract skeleton for the implementation of single-dimensional metrics.
Siehe auch:
  • Konstruktordetails

    • AbstractMetricSingleDimensional

      protected AbstractMetricSingleDimensional(boolean monotonicWithGeneralization, boolean monotonicWithSuppression, boolean independent)
      Creates a new instance.
      Parameter:
      monotonicWithGeneralization -
      monotonicWithSuppression -
      independent -
    • AbstractMetricSingleDimensional

      protected AbstractMetricSingleDimensional(boolean monotonicWithGeneralization, boolean monotonicWithSuppression, boolean independent, double gsFactor)
      Creates a new instance.
      Parameter:
      monotonicWithGeneralization -
      monotonicWithSuppression -
      independent -
      gsFactor -
  • Methodendetails

    • createInformationLoss

      public ILSingleDimensionalWithBound createInformationLoss(double loss)
      Create a loss object
      Parameter:
      loss -
      Gibt zurück:
    • createInformationLoss

      public ILSingleDimensionalWithBound createInformationLoss(double loss, double bound)
      Create a loss object
      Parameter:
      loss -
      bound -
      Gibt zurück:
    • createMaxInformationLoss

      public InformationLoss<?> createMaxInformationLoss()
      Beschreibung aus Klasse kopiert: Metric
      Returns an instance of the maximal value.
      Angegeben von:
      createMaxInformationLoss in Klasse Metric<ILSingleDimensional>
      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<ILSingleDimensional>
      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:
    • getNumTuples

      protected Double getNumTuples()
      Returns the number of rows in the dataset or subset.
      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<ILSingleDimensional>
      Parameter:
      manager -
      definition -
      input -
      hierarchies -
      config -
    • setNumTuples

      protected void setNumTuples(Double tuples)
      Returns the number of rows in the dataset or subset.
      Parameter:
      tuples -