T - type of variablepublic class MinGlbCard<T extends SetVar> extends Object implements ComparatorVariable<T>
| Constructor and Description |
|---|
MinGlbCard()
It constructs a minimum cardinality, of the greatest lowest bound, variable comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(double left,
T var)
Compares the cardinality of the variables glb to the float value.
|
int |
compare(T leftVar,
T rightVar)
Compares the cardinality of the variables glbs.
|
double |
metric(T var)
Returns the cardinality of the glb.
|
public MinGlbCard()
public int compare(double left,
T var)
compare in interface ComparatorVariable<T extends SetVar>left - the baseline for comparison.var - variable which is compared to baseline.public int compare(T leftVar, T rightVar)
compare in interface ComparatorVariable<T extends SetVar>leftVar - left variablerightVar - right variablepublic double metric(T var)
metric in interface ComparatorVariable<T extends SetVar>var - variable for which metric is computed.Copyright © 2022. All rights reserved.