T
- type of variable being used in the search.public class MinLubCard<T extends SetVar> extends Object implements ComparatorVariable<T>
Constructor and Description |
---|
MinLubCard()
It constructs a minimum cardinality, of the least upper bound, variable comparator.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(double left,
T var)
Compares the cardinality of the variables lub to the float value.
|
int |
compare(T leftVar,
T rightVar)
Compares the cardinality of the variables lubs.
|
double |
metric(T var)
Returns the cardinality of the lub.
|
public MinLubCard()
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.