public class MetricMDNMPrecision extends AbstractMetricMultiDimensional
Metric.AggregateFunction
Modifier | Constructor and Description |
---|---|
protected |
MetricMDNMPrecision()
Creates a new instance.
|
protected |
MetricMDNMPrecision(boolean monotonic,
boolean independent,
Metric.AggregateFunction function)
For subclasses.
|
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(Node node,
HashGroupify g)
Evaluates the metric for the given node.
|
protected ILMultiDimensionalWithBound |
getInformationLossInternal(Node node,
HashGroupifyEntry entry)
Returns the information loss that would be induced by suppressing the given entry.
|
protected AbstractILMultiDimensional |
getLowerBoundInternal(Node node)
Returns a lower bound for the information loss for the given node.
|
protected AbstractILMultiDimensional |
getLowerBoundInternal(Node node,
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(DataDefinition definition,
Data input,
GeneralizationHierarchy[] hierarchies,
ARXConfiguration config)
Implement this to initialize the metric.
|
java.lang.String |
toString()
Returns the name of metric.
|
createInformationLoss, createInformationLossWithBound, createInformationLossWithoutBound, createMaxInformationLoss, createMinInformationLoss, getAggregateFunction, getDimensions, initialize, setMax, setMin
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, getDescription, getDescription, getInformationLoss, getInformationLoss, getLowerBound, getLowerBound, getName, initialize, isIndependent, isMonotonic, isMultiDimensional, isWeighted, list, round
protected MetricMDNMPrecision()
protected MetricMDNMPrecision(Metric.AggregateFunction function)
function
- protected MetricMDNMPrecision(boolean monotonic, boolean independent, Metric.AggregateFunction function)
monotonic
- independent
- function
- public MetricConfiguration getConfiguration()
getConfiguration
in class Metric<AbstractILMultiDimensional>
public java.lang.String toString()
Metric
toString
in class Metric<AbstractILMultiDimensional>
protected ILMultiDimensionalWithBound 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<AbstractILMultiDimensional>
protected ILMultiDimensionalWithBound getInformationLossInternal(Node node, 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 AbstractILMultiDimensional getLowerBoundInternal(Node node)
Metric
null
.getLowerBoundInternal
in class Metric<AbstractILMultiDimensional>
protected AbstractILMultiDimensional getLowerBoundInternal(Node node, HashGroupify groupify)
Metric
null
. getLowerBoundInternal
in class Metric<AbstractILMultiDimensional>
protected void initialize(int[] heights, double cells)
heights
- cells
- protected void initializeInternal(DataDefinition definition, Data input, GeneralizationHierarchy[] hierarchies, ARXConfiguration config)
Metric
initializeInternal
in class AbstractMetricMultiDimensional