public final class Dominance
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
AT_LEAST |
Denotes at least union
|
static int |
AT_MOST |
Denotes at most union
|
static int |
DOMINANCE_COMPLETE |
Denotes complete dominance
|
static int |
DOMINANCE_CUMULATIVE |
Denotes cumulative dominance
|
| Constructor | Description |
|---|---|
Dominance() |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
dominates(Example y,
Example x,
Attribute[] attributes,
byte[] mask) |
Checks cumulative dominance.
|
static java.util.List<Example> |
getPDominated(Example x,
MemoryContainer exampleSet,
Attribute[] attributes) |
|
static java.util.List<Example> |
getPDominating(Example x,
MemoryContainer exampleSet,
Attribute[] attributes) |
public static final int DOMINANCE_COMPLETE
public static final int DOMINANCE_CUMULATIVE
public static final int AT_MOST
public static final int AT_LEAST
public static java.util.List<Example> getPDominating(Example x, MemoryContainer exampleSet, Attribute[] attributes)
x - Given exampleexampleSet - Set of all examplesattributes - Set of attributespublic static java.util.List<Example> getPDominated(Example x, MemoryContainer exampleSet, Attribute[] attributes)
x - Given exampleexampleSet - Set of all examplesattributes - Set of attributespublic static boolean dominates(Example y, Example x, Attribute[] attributes, byte[] mask)
y - First examplex - Second exampleattributes - Array of attributesmask - Mask of attributes to use, can be null (all attributes are consideredjava.lang.ArrayIndexOutOfBoundsException - when examples (or mask and attributes arrays) have different sizes or
examples don't match attributes