Package org.deidentifier.arx.metric.v2
Klasse MetricSDClassification
java.lang.Object
org.deidentifier.arx.metric.Metric<ILSingleDimensional>
org.deidentifier.arx.metric.v2.AbstractMetricSingleDimensional
org.deidentifier.arx.metric.v2.MetricSDClassification
- Alle implementierten Schnittstellen:
Serializable
This class provides an implementation of the classification metric.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.deidentifier.arx.metric.Metric
Metric.AggregateFunction -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedCreates a new instance.protectedMetricSDClassification(double gsFactor) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns an instance of the maximal value.Returns an instance of the minimal value.Returns the configuration of this metric.protected ILSingleDimensionalWithBoundgetInformationLossInternal(Transformation<?> node, HashGroupify g) Evaluates the metric for the given node.protected ILSingleDimensionalWithBoundReturns the information loss that would be induced by suppressing the given entry.protected ILSingleDimensionalgetLowerBoundInternal(Transformation<?> node) Returns a lower bound for the information loss for the given node.protected ILSingleDimensionalgetLowerBoundInternal(Transformation<?> node, HashGroupify groupify) Returns a lower bound for the information loss for the given node.doublePenalty for records with non-majority responsedoublePenalty for records without a majority responsedoublePenalty for suppressed featuresgetScore(Transformation<?> node, HashGroupify groupify) Calculates the score.protected voidinitializeInternal(DataManager manager, DataDefinition definition, Data input, GeneralizationHierarchy[] hierarchies, ARXConfiguration config) Implement this to initialize the metric.booleanReturns whether a generalization/suppression factor is supportedbooleanReturns whether the metric provides a score functionrender(ARXConfiguration config) Renders the privacy modeltoString()Returns the name of metric.Von Klasse geerbte Methoden org.deidentifier.arx.metric.v2.AbstractMetricSingleDimensional
createInformationLoss, createInformationLoss, getAggregationFunctionsGeneralized, getAggregationFunctionsNonGeneralized, getAggregationIndicesGeneralized, getAggregationIndicesNonGeneralized, getAggregationInformation, getNumTuples, setNumTuplesVon Klasse geerbte Methoden org.deidentifier.arx.metric.Metric
createAECSMetric, createAECSMetric, createAmbiguityMetric, createClassificationMetric, createClassificationMetric, createDiscernabilityMetric, createDiscernabilityMetric, createEntropyBasedInformationLossMetric, createEntropyBasedInformationLossMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createHeightMetric, createHeightMetric, createInstanceOfHighestScore, createInstanceOfLowestScore, createKLDivergenceMetric, createLossMetric, createLossMetric, createLossMetric, createLossMetric, createMetric, createNormalizedEntropyMetric, createNormalizedEntropyMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedNormalizedEntropyMetric, createPrecomputedNormalizedEntropyMetric, createPublisherPayoutMetric, createPublisherPayoutMetric, createStaticMetric, createStaticMetric, getAggregateFunction, getDescription, getDescription, getGeneralizationFactor, getGeneralizationSuppressionFactor, getInformationLoss, getInformationLoss, getLowerBound, getLowerBound, getName, getNumRecords, getSubset, getSuppressionFactor, initialize, isAbleToHandleClusteredMicroaggregation, isAbleToHandleMicroaggregation, isIndependent, isMonotonic, isMonotonicWithGeneralization, isMonotonicWithSuppression, isMultiDimensional, isPrecomputed, isWeighted, list, round
-
Konstruktordetails
-
MetricSDClassification
protected MetricSDClassification()Creates a new instance. -
MetricSDClassification
protected MetricSDClassification(double gsFactor) Creates a new instance.- Parameter:
gsFactor-
-
-
Methodendetails
-
createMaxInformationLoss
Beschreibung aus Klasse kopiert:MetricReturns an instance of the maximal value.- Setzt außer Kraft:
createMaxInformationLossin KlasseAbstractMetricSingleDimensional- Gibt zurück:
-
createMinInformationLoss
Beschreibung aus Klasse kopiert:MetricReturns an instance of the minimal value.- Setzt außer Kraft:
createMinInformationLossin KlasseAbstractMetricSingleDimensional- Gibt zurück:
-
getConfiguration
Returns the configuration of this metric.- Setzt außer Kraft:
getConfigurationin KlasseMetric<ILSingleDimensional>- Gibt zurück:
-
getPenaltyInfrequentResponse
public double getPenaltyInfrequentResponse()Penalty for records with non-majority response- Gibt zurück:
- the penaltyDifferentFromMajority
-
getPenaltyNoMajorityResponse
public double getPenaltyNoMajorityResponse()Penalty for records without a majority response- Gibt zurück:
- the penaltyNoMajority
-
getPenaltySuppressed
public double getPenaltySuppressed()Penalty for suppressed features- Gibt zurück:
- the penaltySuppressed
-
getScore
Beschreibung aus Klasse kopiert:MetricCalculates the score. Note: All score functions are expected to return a score value divided by the sensitivity of the score function.- Setzt außer Kraft:
getScorein KlasseMetric<ILSingleDimensional>- Parameter:
node-groupify-- Gibt zurück:
-
isGSFactorSupported
public boolean isGSFactorSupported()Beschreibung aus Klasse kopiert:MetricReturns whether a generalization/suppression factor is supported- Setzt außer Kraft:
isGSFactorSupportedin KlasseMetric<ILSingleDimensional>- Gibt zurück:
-
isScoreFunctionSupported
public boolean isScoreFunctionSupported()Beschreibung aus Klasse kopiert:MetricReturns whether the metric provides a score function- Setzt außer Kraft:
isScoreFunctionSupportedin KlasseMetric<ILSingleDimensional>- Gibt zurück:
-
render
Beschreibung aus Klasse kopiert:MetricRenders the privacy model- Angegeben von:
renderin KlasseMetric<ILSingleDimensional>- Gibt zurück:
-
toString
Beschreibung aus Klasse kopiert:MetricReturns the name of metric.- Setzt außer Kraft:
toStringin KlasseMetric<ILSingleDimensional>- Gibt zurück:
-
getInformationLossInternal
protected ILSingleDimensionalWithBound getInformationLossInternal(Transformation<?> node, HashGroupify g) Beschreibung aus Klasse kopiert:MetricEvaluates the metric for the given node.- Angegeben von:
getInformationLossInternalin KlasseMetric<ILSingleDimensional>- Parameter:
node- The node for which to compute the information lossg- The groupify operator of the previous check- Gibt zurück:
- the double
-
getInformationLossInternal
protected ILSingleDimensionalWithBound getInformationLossInternal(Transformation<?> node, HashGroupifyEntry m) Beschreibung aus Klasse kopiert:MetricReturns the information loss that would be induced by suppressing the given entry. The loss is not necessarily consistent with the loss that is computed bygetInformationLoss(node, groupify)but is guaranteed to be comparable for different entries from the same groupify operator.- Angegeben von:
getInformationLossInternalin KlasseMetric<ILSingleDimensional>- Parameter:
m-- Gibt zurück:
-
getLowerBoundInternal
Beschreibung aus Klasse kopiert:MetricReturns 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 returnnull.- Angegeben von:
getLowerBoundInternalin KlasseMetric<ILSingleDimensional>- Parameter:
node-- Gibt zurück:
-
getLowerBoundInternal
Beschreibung aus Klasse kopiert:MetricReturns 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 returnnull.
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:
getLowerBoundInternalin KlasseMetric<ILSingleDimensional>- Parameter:
node-groupify-- Gibt zurück:
-
initializeInternal
protected void initializeInternal(DataManager manager, DataDefinition definition, Data input, GeneralizationHierarchy[] hierarchies, ARXConfiguration config) Beschreibung aus Klasse kopiert:MetricImplement this to initialize the metric.- Setzt außer Kraft:
initializeInternalin KlasseAbstractMetricSingleDimensional- Parameter:
manager-definition-input-hierarchies-config-
-