public class MetricConfiguration
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MetricConfiguration.MetricConfigurationAttackerModel
Attacker model used by the metric
|
Constructor and Description |
---|
MetricConfiguration(boolean monotonic,
double gsFactor,
boolean precomputed,
double precomputationThreshold,
Metric.AggregateFunction aggregateFunction)
Constructs a new instance.
|
MetricConfiguration(boolean monotonic,
double gsFactor,
boolean precomputed,
double precomputationThreshold,
Metric.AggregateFunction aggregateFunction,
MetricConfiguration.MetricConfigurationAttackerModel attackerModel)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
Metric.AggregateFunction |
getAggregateFunction() |
MetricConfiguration.MetricConfigurationAttackerModel |
getAttackerModel() |
double |
getGsFactor() |
double |
getPrecomputationThreshold() |
boolean |
isMonotonic() |
boolean |
isPrecomputed() |
void |
setAggregateFunction(Metric.AggregateFunction aggregateFunction) |
void |
setAttackerModel(MetricConfiguration.MetricConfigurationAttackerModel attackerModel) |
void |
setGsFactor(double gsFactor) |
void |
setMonotonic(boolean monotonic) |
void |
setPrecomputationThreshold(double precomputationThreshold) |
void |
setPrecomputed(boolean precomputed) |
public MetricConfiguration(boolean monotonic, double gsFactor, boolean precomputed, double precomputationThreshold, Metric.AggregateFunction aggregateFunction)
monotonic
- gsFactor
- precomputed
- precomputationThreshold
- aggregateFunction
- public MetricConfiguration(boolean monotonic, double gsFactor, boolean precomputed, double precomputationThreshold, Metric.AggregateFunction aggregateFunction, MetricConfiguration.MetricConfigurationAttackerModel attackerModel)
monotonic
- gsFactor
- precomputed
- precomputationThreshold
- aggregateFunction
- attackerModel
- public Metric.AggregateFunction getAggregateFunction()
public MetricConfiguration.MetricConfigurationAttackerModel getAttackerModel()
public double getGsFactor()
public double getPrecomputationThreshold()
public boolean isMonotonic()
public boolean isPrecomputed()
public void setAggregateFunction(Metric.AggregateFunction aggregateFunction)
aggregateFunction
- the aggregateFunction to setpublic void setAttackerModel(MetricConfiguration.MetricConfigurationAttackerModel attackerModel)
attackerModel
- the attackerModel to setpublic void setGsFactor(double gsFactor)
gsFactor
- the gsFactor to setpublic void setMonotonic(boolean monotonic)
monotonic
- the monotonic to setpublic void setPrecomputationThreshold(double precomputationThreshold)
precomputationThreshold
- the precomputationThreshold to setpublic void setPrecomputed(boolean precomputed)
precomputed
- the precomputed to set