T
- Variable type being compared.public interface ComparatorVariable<T extends Var>
Modifier and Type | Method and Description |
---|---|
int |
compare(float metric,
T var)
It compares the baseline metric to the variable metric.
|
int |
compare(T leftVar,
T rightVar)
It compares the metric of the left variable against the right one.
|
float |
metric(T var)
It returns the metric of the variable given according to the comparator.
|
int compare(float metric, T var)
metric
- the baseline for comparison.var
- variable which is compared to baseline.int compare(T leftVar, T rightVar)
leftVar
- left variablerightVar
- right variablefloat metric(T var)
var
- variable for which metric is computed.Copyright © 2020. All rights reserved.