Package org.deidentifier.arx.metric
Klasse MetricConfiguration
java.lang.Object
org.deidentifier.arx.metric.MetricConfiguration
- Alle implementierten Schnittstellen:
Serializable
A class for a configuration of a metric.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungMetricConfiguration(boolean monotonic, double gsFactor, boolean precomputed, double precomputationThreshold, Metric.AggregateFunction aggregateFunction) Constructs a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoubledoublebooleanbooleanvoidsetAggregateFunction(Metric.AggregateFunction aggregateFunction) voidsetGsFactor(double gsFactor) voidsetMonotonic(boolean monotonic) voidsetPrecomputationThreshold(double precomputationThreshold) voidsetPrecomputed(boolean precomputed)
-
Konstruktordetails
-
MetricConfiguration
public MetricConfiguration(boolean monotonic, double gsFactor, boolean precomputed, double precomputationThreshold, Metric.AggregateFunction aggregateFunction) Constructs a new instance.- Parameter:
monotonic-gsFactor-precomputed-precomputationThreshold-aggregateFunction-attackerModel-
-
-
Methodendetails
-
getAggregateFunction
- Gibt zurück:
- the aggregateFunction
-
getGsFactor
public double getGsFactor()- Gibt zurück:
- the gsFactor
-
getPrecomputationThreshold
public double getPrecomputationThreshold()- Gibt zurück:
- the precomputationThreshold
-
isMonotonic
public boolean isMonotonic()- Gibt zurück:
- the monotonic
-
isPrecomputed
public boolean isPrecomputed()- Gibt zurück:
- the precomputed
-
setAggregateFunction
- Parameter:
aggregateFunction- the aggregateFunction to set
-
setGsFactor
public void setGsFactor(double gsFactor) - Parameter:
gsFactor- the gsFactor to set
-
setMonotonic
public void setMonotonic(boolean monotonic) - Parameter:
monotonic- the monotonic to set
-
setPrecomputationThreshold
public void setPrecomputationThreshold(double precomputationThreshold) - Parameter:
precomputationThreshold- the precomputationThreshold to set
-
setPrecomputed
public void setPrecomputed(boolean precomputed) - Parameter:
precomputed- the precomputed to set
-