public class MetricSDNMKLDivergence extends AbstractMetricSingleDimensional
Metric.AggregateFunction
Constructor and Description |
---|
MetricSDNMKLDivergence()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ILSingleDimensional |
createMaxInformationLoss()
Returns an instance of the maximal value.
|
ILSingleDimensional |
createMinInformationLoss()
Returns an instance of the minimal value.
|
MetricConfiguration |
getConfiguration()
Returns the configuration of this metric.
|
protected ILSingleDimensionalWithBound |
getInformationLossInternal(org.deidentifier.arx.framework.lattice.Transformation node,
org.deidentifier.arx.framework.check.groupify.HashGroupify g)
Evaluates the metric for the given node.
|
protected ILSingleDimensionalWithBound |
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 ILSingleDimensional |
getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node)
Returns a lower bound for the information loss for the given node.
|
protected ILSingleDimensional |
getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node,
org.deidentifier.arx.framework.check.groupify.HashGroupify g)
Returns a lower bound for the information loss for the given node.
|
java.lang.String |
getName()
Returns the name of metric.
|
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.
|
java.lang.String |
toString()
Returns the name of metric.
|
getNumTuples, setNumTuples
createAECSMetric, createAmbiguityMetric, createDiscernabilityMetric, createDiscernabilityMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createHeightMetric, createHeightMetric, createKLDivergenceMetric, createLossMetric, createLossMetric, createLossMetric, createLossMetric, createMetric, createNormalizedEntropyMetric, createNormalizedEntropyMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedNormalizedEntropyMetric, createPrecomputedNormalizedEntropyMetric, createStaticMetric, createStaticMetric, getAggregateFunction, getDescription, getDescription, getInformationLoss, getInformationLoss, getLowerBound, getLowerBound, initialize, isIndependent, isMonotonic, isMultiDimensional, isWeighted, list, round
public ILSingleDimensional createMaxInformationLoss()
Metric
createMaxInformationLoss
in class AbstractMetricSingleDimensional
public ILSingleDimensional createMinInformationLoss()
Metric
createMinInformationLoss
in class AbstractMetricSingleDimensional
public MetricConfiguration getConfiguration()
getConfiguration
in class Metric<ILSingleDimensional>
public java.lang.String getName()
Metric
getName
in class Metric<ILSingleDimensional>
public java.lang.String toString()
Metric
toString
in class Metric<ILSingleDimensional>
protected ILSingleDimensionalWithBound getInformationLossInternal(org.deidentifier.arx.framework.lattice.Transformation node, org.deidentifier.arx.framework.check.groupify.HashGroupify g)
Metric
getInformationLossInternal
in class Metric<ILSingleDimensional>
node
- The node for which to compute the information lossg
- The groupify operator of the previous checkprotected ILSingleDimensionalWithBound 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<ILSingleDimensional>
protected ILSingleDimensional getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node)
Metric
null
.getLowerBoundInternal
in class Metric<ILSingleDimensional>
protected ILSingleDimensional getLowerBoundInternal(org.deidentifier.arx.framework.lattice.Transformation node, org.deidentifier.arx.framework.check.groupify.HashGroupify g)
Metric
null
. getLowerBoundInternal
in class Metric<ILSingleDimensional>
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 AbstractMetricSingleDimensional