Package org.deidentifier.arx.metric.v2
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
This class provides an abstract skeleton for the implementation of single-dimensional metrics.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.deidentifier.arx.metric.Metric
Metric.AggregateFunction -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedAbstractMetricSingleDimensional(boolean monotonicWithGeneralization, boolean monotonicWithSuppression, boolean independent) Creates a new instance.protectedAbstractMetricSingleDimensional(boolean monotonicWithGeneralization, boolean monotonicWithSuppression, boolean independent, double gsFactor) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateInformationLoss(double loss) Create a loss objectcreateInformationLoss(double loss, double bound) Create a loss objectReturns an instance of the maximal value.Returns an instance of the minimal value.protected org.deidentifier.arx.framework.check.distribution.DistributionAggregateFunction[]Returns relevant aggregation functionsprotected org.deidentifier.arx.framework.check.distribution.DistributionAggregateFunction[]Returns relevant aggregation functionsprotected int[]Returns the indicies of aggregated variablesprotected int[]Returns the indicies of aggregated variablesprotected org.deidentifier.arx.framework.data.DataAggregationInformationNeeded for microaggregationprotected DoubleReturns the number of rows in the dataset or subset.protected voidinitializeInternal(org.deidentifier.arx.framework.data.DataManager manager, DataDefinition definition, org.deidentifier.arx.framework.data.Data input, org.deidentifier.arx.framework.data.GeneralizationHierarchy[] hierarchies, ARXConfiguration config) Implement this to initialize the metric.protected voidsetNumTuples(Double tuples) Returns the number of rows in the dataset or subset.Von 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, getConfiguration, getDescription, getDescription, getGeneralizationFactor, getGeneralizationSuppressionFactor, getInformationLoss, getInformationLoss, getInformationLossInternal, getInformationLossInternal, getLowerBound, getLowerBound, getLowerBoundInternal, getLowerBoundInternal, getName, getNumRecords, getScore, getSubset, getSuppressionFactor, initialize, isAbleToHandleClusteredMicroaggregation, isAbleToHandleMicroaggregation, isGSFactorSupported, isIndependent, isMonotonic, isMonotonicWithGeneralization, isMonotonicWithSuppression, isMultiDimensional, isPrecomputed, isScoreFunctionSupported, isWeighted, list, render, round, toString
-
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
Create a loss object- Parameter:
loss-- Gibt zurück:
-
createInformationLoss
Create a loss object- Parameter:
loss-bound-- Gibt zurück:
-
createMaxInformationLoss
Beschreibung aus Klasse kopiert:MetricReturns an instance of the maximal value.- Angegeben von:
createMaxInformationLossin KlasseMetric<ILSingleDimensional>- Gibt zurück:
-
createMinInformationLoss
Beschreibung aus Klasse kopiert:MetricReturns an instance of the minimal value.- Angegeben von:
createMinInformationLossin KlasseMetric<ILSingleDimensional>- Gibt zurück:
-
getAggregationFunctionsGeneralized
protected org.deidentifier.arx.framework.check.distribution.DistributionAggregateFunction[] getAggregationFunctionsGeneralized()Returns relevant aggregation functions- Gibt zurück:
-
getAggregationFunctionsNonGeneralized
protected org.deidentifier.arx.framework.check.distribution.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 org.deidentifier.arx.framework.data.DataAggregationInformation getAggregationInformation()Needed for microaggregation- Gibt zurück:
-
getNumTuples
Returns the number of rows in the dataset or subset.- Gibt zurück:
-
initializeInternal
protected void initializeInternal(org.deidentifier.arx.framework.data.DataManager manager, DataDefinition definition, org.deidentifier.arx.framework.data.Data input, org.deidentifier.arx.framework.data.GeneralizationHierarchy[] hierarchies, ARXConfiguration config) Beschreibung aus Klasse kopiert:MetricImplement this to initialize the metric.- Angegeben von:
initializeInternalin KlasseMetric<ILSingleDimensional>- Parameter:
manager-definition-input-hierarchies-config-
-
setNumTuples
Returns the number of rows in the dataset or subset.- Parameter:
tuples-
-