public class MetricMDNMPrecision extends AbstractMetricMultiDimensional
Metric.AggregateFunction
Modifier | Constructor and Description |
---|---|
protected |
MetricMDNMPrecision()
Creates a new instance.
|
protected |
MetricMDNMPrecision(boolean monotonicWithGeneralization,
boolean monotonicWithSuppression,
boolean independent,
double gsFactor,
Metric.AggregateFunction function)
For subclasses.
|
protected |
MetricMDNMPrecision(boolean monotonicWithGeneralization,
boolean monotonicWithSuppression,
boolean independent,
Metric.AggregateFunction function)
For subclasses.
|
protected |
MetricMDNMPrecision(double gsFactor)
Creates a new instance.
|
protected |
MetricMDNMPrecision(double gsFactor,
Metric.AggregateFunction function)
Creates a new instance.
|
protected |
MetricMDNMPrecision(Metric.AggregateFunction function)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
MetricConfiguration |
getConfiguration()
Returns the configuration of this metric.
|
protected ILMultiDimensionalWithBound |
getInformationLossInternal(org.deidentifier.arx.framework.lattice.Transformation node,
org.deidentifier.arx.framework.check.groupify.HashGroupify g)
Evaluates the metric for the given node.
|
protected ILMultiDimensionalWithBound |
getInformationLossInternal(org.deidentifier.arx.framework.lattice.Transformation node,
org.deidentifier.arx.framework.check.groupify.HashGroupifyEntry entry)
Returns the information loss that would be induced by suppressing the given entry.
|
protected AbstractILMultiDimensional |
getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node)
Returns a lower bound for the information loss for the given node.
|
protected AbstractILMultiDimensional |
getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node,
org.deidentifier.arx.framework.check.groupify.HashGroupify groupify)
Returns a lower bound for the information loss for the given node.
|
protected void |
initialize(int[] heights,
double cells)
For backwards compatibility only.
|
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)
Implement this to initialize the metric.
|
boolean |
isAbleToHandleMicroaggregation()
Returns whether this metric handles microaggregation
|
boolean |
isGSFactorSupported()
Returns whether a generalization/suppression factor is supported
|
java.lang.String |
toString()
Returns the name of metric.
|
createInformationLoss, createInformationLossWithBound, createInformationLossWithoutBound, createMaxInformationLoss, createMinInformationLoss, getAggregateFunction, getAggregateFunctions, getDimensions, getDimensionsAggregated, getDimensionsGeneralized, getError, getMicroaggregationFunctions, getMicroaggregationStartIndex, initialize, setMax, setMin
createAECSMetric, createAECSMetric, createAmbiguityMetric, 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, getDescription, getGeneralizationFactor, getGeneralizationSuppressionFactor, getInformationLoss, getInformationLoss, getLowerBound, getLowerBound, getName, getNumRecords, getSubset, getSuppressionFactor, initialize, isIndependent, isMonotonic, isMonotonicWithGeneralization, isMonotonicWithSuppression, isMultiDimensional, isPrecomputed, isWeighted, list, round
protected MetricMDNMPrecision()
protected MetricMDNMPrecision(Metric.AggregateFunction function)
function
- protected MetricMDNMPrecision(boolean monotonicWithGeneralization, boolean monotonicWithSuppression, boolean independent, Metric.AggregateFunction function)
monotonicWithGeneralization
- monotonicWithSuppression
- independent
- function
- protected MetricMDNMPrecision(boolean monotonicWithGeneralization, boolean monotonicWithSuppression, boolean independent, double gsFactor, Metric.AggregateFunction function)
monotonicWithGeneralization
- monotonicWithSuppression
- independent
- gsFactor
- function
- protected MetricMDNMPrecision(double gsFactor)
gsFactor
- protected MetricMDNMPrecision(double gsFactor, Metric.AggregateFunction function)
gsFactor
- function
- public MetricConfiguration getConfiguration()
getConfiguration
in class Metric<AbstractILMultiDimensional>
public boolean isAbleToHandleMicroaggregation()
Metric
isAbleToHandleMicroaggregation
in class Metric<AbstractILMultiDimensional>
public boolean isGSFactorSupported()
Metric
isGSFactorSupported
in class Metric<AbstractILMultiDimensional>
public java.lang.String toString()
Metric
toString
in class Metric<AbstractILMultiDimensional>
protected ILMultiDimensionalWithBound getInformationLossInternal(org.deidentifier.arx.framework.lattice.Transformation node, org.deidentifier.arx.framework.check.groupify.HashGroupify g)
Metric
getInformationLossInternal
in class Metric<AbstractILMultiDimensional>
node
- The node for which to compute the information lossg
- The groupify operator of the previous checkprotected ILMultiDimensionalWithBound getInformationLossInternal(org.deidentifier.arx.framework.lattice.Transformation node, org.deidentifier.arx.framework.check.groupify.HashGroupifyEntry entry)
Metric
getInformationLoss(node, groupify)
but is guaranteed to be comparable for
different entries from the same groupify operator.getInformationLossInternal
in class Metric<AbstractILMultiDimensional>
protected AbstractILMultiDimensional getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node)
Metric
null
.getLowerBoundInternal
in class Metric<AbstractILMultiDimensional>
protected AbstractILMultiDimensional getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node, org.deidentifier.arx.framework.check.groupify.HashGroupify groupify)
Metric
null
. getLowerBoundInternal
in class Metric<AbstractILMultiDimensional>
protected void initialize(int[] heights, double cells)
heights
- cells
- 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)
Metric
initializeInternal
in class AbstractMetricMultiDimensional