T
- Variable type being compared.public interface ComparatorVariable<T extends Var>
Modifier and Type | Method and Description |
---|---|
int |
compare(double 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.
|
double |
metric(T var)
It returns the metric of the variable given according to the comparator.
|
int compare(double 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 variabledouble metric(T var)
var
- variable for which metric is computed.Copyright © 2022. All rights reserved.