public enum QueryComparison extends Enum<QueryComparison>
| Enum Constant and Description |
|---|
DIFFERENCE
The difference between the current queried value and the value calculated using
Base evidence. |
LIFT
Each queried value is divided by its value when calculated using
Base evidence. |
NONE
No comparison is made.
|
| Modifier and Type | Method and Description |
|---|---|
static QueryComparison |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryComparison[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryComparison NONE
public static final QueryComparison DIFFERENCE
Base evidence. Returns a value between -1 and 1 for discrete values.
This comparison is useful because it gives less weight when small probabilities are involved.public static final QueryComparison LIFT
Base evidence.
A value of NaN will be returned if the probability before and after is zero. This is by design.
A value of Infinity will be returned if the probability before is zero and the probability after is positive. This is by design.
public static QueryComparison[] values()
for (QueryComparison c : QueryComparison.values()) System.out.println(c);
public static QueryComparison valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.