public class MetricEntropy extends MetricDefault
Metric.AggregateFunction
Modifier | Constructor and Description |
---|---|
protected |
MetricEntropy() |
protected |
MetricEntropy(boolean monotonic,
boolean independent) |
Modifier and Type | Method and Description |
---|---|
protected double[][] |
getCache() |
protected int[][][] |
getCardinalities() |
protected int[][][] |
getHierarchies() |
protected InformationLossWithBound<org.deidentifier.arx.metric.InformationLossDefault> |
getInformationLossInternal(Transformation node,
HashGroupify g)
Evaluates the metric for the given node.
|
protected InformationLossWithBound<org.deidentifier.arx.metric.InformationLossDefault> |
getInformationLossInternal(Transformation node,
HashGroupifyEntry entry)
Returns the information loss that would be induced by suppressing the given entry.
|
protected org.deidentifier.arx.metric.InformationLossDefault |
getLowerBoundInternal(Transformation node)
Returns a lower bound for the information loss for the given node.
|
protected org.deidentifier.arx.metric.InformationLossDefault |
getLowerBoundInternal(Transformation node,
HashGroupify groupify)
Returns a lower bound for the information loss for the given node.
|
protected void |
initializeInternal(DataManager manager,
DataDefinition definition,
Data input,
GeneralizationHierarchy[] ahierarchies,
ARXConfiguration config)
Implement this to initialize the metric.
|
java.lang.String |
toString()
Returns the name of metric.
|
createMaxInformationLoss, createMinInformationLoss
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, getConfiguration, getDescription, getDescription, getInformationLoss, getInformationLoss, getLowerBound, getLowerBound, getName, initialize, isIndependent, isMonotonic, isMultiDimensional, isWeighted, list, round
protected MetricEntropy()
protected MetricEntropy(boolean monotonic, boolean independent)
monotonic
- independent
- public java.lang.String toString()
Metric
protected double[][] getCache()
protected int[][][] getCardinalities()
protected int[][][] getHierarchies()
protected InformationLossWithBound<org.deidentifier.arx.metric.InformationLossDefault> getInformationLossInternal(Transformation node, HashGroupifyEntry entry)
Metric
getInformationLoss(node, groupify)
but is guaranteed to be comparable for
different entries from the same groupify operator.getInformationLossInternal
in class Metric<org.deidentifier.arx.metric.InformationLossDefault>
protected InformationLossWithBound<org.deidentifier.arx.metric.InformationLossDefault> getInformationLossInternal(Transformation node, HashGroupify g)
Metric
getInformationLossInternal
in class Metric<org.deidentifier.arx.metric.InformationLossDefault>
node
- The node for which to compute the information lossg
- The groupify operator of the previous checkprotected org.deidentifier.arx.metric.InformationLossDefault getLowerBoundInternal(Transformation node)
Metric
null
.getLowerBoundInternal
in class MetricDefault
protected org.deidentifier.arx.metric.InformationLossDefault getLowerBoundInternal(Transformation node, HashGroupify groupify)
Metric
null
. getLowerBoundInternal
in class MetricDefault
protected void initializeInternal(DataManager manager, DataDefinition definition, Data input, GeneralizationHierarchy[] ahierarchies, ARXConfiguration config)
Metric
initializeInternal
in class MetricDefault