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 int |
getDimensions()
Returns the number of dimensions.
|
protected void |
initialize(int dimensions)
For backwards compatibility only.
|
protected void |
initializeInternal(DataDefinition definition,
Data input,
GeneralizationHierarchy[] hierarchies,
ARXConfiguration config)
Implement this to initialize the metric.
|
protected void |
setMax(double[] max)
Sets the maximal information loss.
|
protected void |
setMin(double[] min)
Sets the minimal information loss.
|
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, getConfiguration, getDescription, getDescription, getInformationLoss, getInformationLoss, getInformationLossInternal, getInformationLossInternal, getLowerBound, getLowerBound, getLowerBoundInternal, getLowerBoundInternal, getName, 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 int getDimensions()
protected void initialize(int dimensions)
dimensions
- protected void initializeInternal(DataDefinition definition, Data input, GeneralizationHierarchy[] hierarchies, ARXConfiguration config)
Metric
initializeInternal
in class Metric<AbstractILMultiDimensional>
protected void setMax(double[] max)
max
- protected void setMin(double[] min)
min
-