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(Node node,
HashGroupify g)
Evaluates the metric for the given node.
|
protected InformationLossWithBound<org.deidentifier.arx.metric.InformationLossDefault> |
getInformationLossInternal(Node node,
HashGroupifyEntry entry)
Returns the information loss that would be induced by suppressing the given entry.
|
protected org.deidentifier.arx.metric.InformationLossDefault |
getLowerBoundInternal(Node node)
Returns a lower bound for the information loss for the given node.
|
protected org.deidentifier.arx.metric.InformationLossDefault |
getLowerBoundInternal(Node node,
HashGroupify groupify)
Returns a lower bound for the information loss for the given node.
|
protected void |
initializeInternal(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, createDiscernabilityMetric, createDiscernabilityMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createHeightMetric, createHeightMetric, createLossMetric, createLossMetric, createLossMetric, createLossMetric, createMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecisionMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedEntropyMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, createPrecomputedLossMetric, 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(Node 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(Node 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(Node node)
Metric
null
.getLowerBoundInternal
in class MetricDefault
protected org.deidentifier.arx.metric.InformationLossDefault getLowerBoundInternal(Node node, HashGroupify groupify)
Metric
null
. getLowerBoundInternal
in class MetricDefault
protected void initializeInternal(DataDefinition definition, Data input, GeneralizationHierarchy[] ahierarchies, ARXConfiguration config)
Metric
initializeInternal
in class MetricDefault