Package org.deidentifier.arx.metric.v2
Klasse MetricMDNMLoss
java.lang.Object
org.deidentifier.arx.metric.Metric<AbstractILMultiDimensional>
org.deidentifier.arx.metric.v2.AbstractMetricMultiDimensional
org.deidentifier.arx.metric.v2.MetricMDNMLoss
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
MetricMDNMLossPrecomputed
This class implements a variant of the Loss metric.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.deidentifier.arx.metric.Metric
Metric.AggregateFunction -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDefault constructor which treats all transformation methods equally.MetricMDNMLoss(double gsFactor, Metric.AggregateFunction function) A constructor that allows to define a factor weighting generalization and suppression.MetricMDNMLoss(Metric.AggregateFunction function) Default constructor which treats all transformation methods equally. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the configuration of this metric.doubleReturns the factor used weight generalized values.doubleReturns the factor weighting generalization and suppression.getName()Returns the name of metric.getScore(org.deidentifier.arx.framework.lattice.Transformation<?> node, org.deidentifier.arx.framework.check.groupify.HashGroupify groupify) Calculates the score.doubleReturns the factor used to weight suppressed values.booleanReturns whether this metric handles microaggregationbooleanReturns 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.AbstractMetricMultiDimensional
createMaxInformationLoss, createMinInformationLoss, getAggregateFunctionVon 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, getDescription, getInformationLoss, getInformationLoss, getLowerBound, getLowerBound, initialize, isAbleToHandleClusteredMicroaggregation, isIndependent, isMonotonic, isMonotonicWithGeneralization, isMonotonicWithSuppression, isMultiDimensional, isPrecomputed, isWeighted, list
-
Konstruktordetails
-
MetricMDNMLoss
public MetricMDNMLoss()Default constructor which treats all transformation methods equally. -
MetricMDNMLoss
Default constructor which treats all transformation methods equally.- Parameter:
function-
-
MetricMDNMLoss
A constructor that allows to define a factor weighting generalization and suppression.- Parameter:
gsFactor- A factor [0,1] weighting generalization and suppression. The default value is 0.5, which means that generalization and suppression will be treated equally. A factor of 0 will favor suppression, and a factor of 1 will favor generalization. The values in between can be used for balancing both methods.function-
-
-
Methodendetails
-
getConfiguration
Returns the configuration of this metric.- Setzt außer Kraft:
getConfigurationin KlasseMetric<AbstractILMultiDimensional>- Gibt zurück:
-
getGeneralizationFactor
public double getGeneralizationFactor()Beschreibung aus Klasse kopiert:MetricReturns the factor used weight generalized values.- Setzt außer Kraft:
getGeneralizationFactorin KlasseMetric<AbstractILMultiDimensional>- Gibt zurück:
-
getGeneralizationSuppressionFactor
public double getGeneralizationSuppressionFactor()Beschreibung aus Klasse kopiert:MetricReturns the factor weighting generalization and suppression.- Setzt außer Kraft:
getGeneralizationSuppressionFactorin KlasseMetric<AbstractILMultiDimensional>- Gibt zurück:
- A factor [0,1] weighting generalization and suppression. The default value is 0.5, which means that generalization and suppression will be treated equally. A factor of 0 will favor suppression, and a factor of 1 will favor generalization. The values in between can be used for balancing both methods.
-
getName
Beschreibung aus Klasse kopiert:MetricReturns the name of metric.- Setzt außer Kraft:
getNamein KlasseMetric<AbstractILMultiDimensional>- Gibt zurück:
-
getScore
public ILScore getScore(org.deidentifier.arx.framework.lattice.Transformation<?> node, org.deidentifier.arx.framework.check.groupify.HashGroupify groupify) 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<AbstractILMultiDimensional>- Parameter:
node-groupify-- Gibt zurück:
-
getSuppressionFactor
public double getSuppressionFactor()Beschreibung aus Klasse kopiert:MetricReturns the factor used to weight suppressed values.- Setzt außer Kraft:
getSuppressionFactorin KlasseMetric<AbstractILMultiDimensional>- Gibt zurück:
-
isAbleToHandleMicroaggregation
public boolean isAbleToHandleMicroaggregation()Beschreibung aus Klasse kopiert:MetricReturns whether this metric handles microaggregation- Setzt außer Kraft:
isAbleToHandleMicroaggregationin KlasseMetric<AbstractILMultiDimensional>- 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<AbstractILMultiDimensional>- 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<AbstractILMultiDimensional>- Gibt zurück:
-
render
Beschreibung aus Klasse kopiert:MetricRenders the privacy model- Angegeben von:
renderin KlasseMetric<AbstractILMultiDimensional>- Gibt zurück:
-
toString
Beschreibung aus Klasse kopiert:MetricReturns the name of metric.- Setzt außer Kraft:
toStringin KlasseMetric<AbstractILMultiDimensional>- Gibt zurück:
-