public abstract class AbstractMetricMultiDimensional extends Metric<AbstractILMultiDimensional>
Metric.AggregateFunction
Modifier and Type | Method and Description |
---|---|
protected AbstractILMultiDimensional |
createInformationLoss(double[] values)
Helper method for creating information loss.
|
protected ILMultiDimensionalWithBound |
createInformationLossWithBound(double[] values,
double[] bound)
Helper method for creating information loss.
|
protected ILMultiDimensionalWithBound |
createInformationLossWithoutBound(double[] values)
Helper method for creating information loss.
|
InformationLoss<?> |
createMaxInformationLoss()
Returns an instance of the maximal value.
|
InformationLoss<?> |
createMinInformationLoss()
Returns an instance of the minimal value.
|
Metric.AggregateFunction |
getAggregateFunction()
Returns the aggregate function of a multi-dimensional metric, null otherwise.
|
protected org.deidentifier.arx.framework.check.distribution.DistributionAggregateFunction[] |
getAggregateFunctions()
Returns the aggregate functions used for microaggregation
|
protected int |
getDimensions()
Returns the number of dimensions.
|
protected int |
getDimensionsAggregated()
Returns the number of dimensions.
|
protected int |
getDimensionsGeneralized()
Returns the number of dimensions.
|
org.deidentifier.arx.framework.check.distribution.DistributionAggregateFunction[] |
getMicroaggregationFunctions()
Needed for microaggregation
|
int |
getMicroaggregationStartIndex()
Needed for microaggregation
|
protected void |
initialize(int dimensions)
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.
|
protected abstract boolean |
isAbleToHandleMicroaggregation()
Does this metric handle microaggregation
|
protected void |
setMax(double[] max)
Sets the maximal information loss.
|
protected void |
setMin(double[] min)
Sets the minimal information loss.
|
createAECSMetric, createAECSMetric, createAmbiguityMetric, createDiscernabilityMetric, createDiscernabilityMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createEntropyMetric, createHeightMetric, createHeightMetric, 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, createStaticMetric, createStaticMetric, getConfiguration, getDescription, getDescription, getGeneralizationFactor, getGeneralizationSuppressionFactor, getInformationLoss, getInformationLoss, getInformationLossInternal, getInformationLossInternal, getLowerBound, getLowerBound, getLowerBoundInternal, getLowerBoundInternal, getName, getNumRecords, getSubset, getSuppressionFactor, initialize, isIndependent, isMonotonic, isMultiDimensional, isWeighted, list, round, toString
public InformationLoss<?> createMaxInformationLoss()
Metric
createMaxInformationLoss
in class Metric<AbstractILMultiDimensional>
public InformationLoss<?> createMinInformationLoss()
Metric
createMinInformationLoss
in class Metric<AbstractILMultiDimensional>
public Metric.AggregateFunction getAggregateFunction()
Metric
getAggregateFunction
in class Metric<AbstractILMultiDimensional>
protected AbstractILMultiDimensional createInformationLoss(double[] values)
values
- protected ILMultiDimensionalWithBound createInformationLossWithBound(double[] values, double[] bound)
values
- bound
- protected ILMultiDimensionalWithBound createInformationLossWithoutBound(double[] values)
values
- protected org.deidentifier.arx.framework.check.distribution.DistributionAggregateFunction[] getAggregateFunctions()
protected int getDimensions()
protected int getDimensionsAggregated()
protected int getDimensionsGeneralized()
protected void initialize(int dimensions)
dimensions
- public int getMicroaggregationStartIndex()
public org.deidentifier.arx.framework.check.distribution.DistributionAggregateFunction[] getMicroaggregationFunctions()
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 Metric<AbstractILMultiDimensional>
protected abstract boolean isAbleToHandleMicroaggregation()
protected void setMax(double[] max)
max
- protected void setMin(double[] min)
min
-