public class DominanceConeCalculator
extends java.lang.Object
DOMINATING
) or negative (DOMINATED
).Modifier and Type | Field | Description |
---|---|---|
static int |
DOMINATED |
Possible value of the cone type, used for dominated (negative) cones
|
static int |
DOMINATING |
Possible value of the cone type, used for dominating (positive) cones
|
Modifier and Type | Method | Description |
---|---|---|
static int[] |
findNumbersOfDominanceConeExamples(int exampleNumber,
MemoryContainer memoryContainer,
int coneType) |
Finds numbers of all examples from dominance cone of type
DOMINATING or DOMINATED ,
starting at given example, using given reference to memory container. |
static int[] |
findNumbersOfDominanceConeExamples(int exampleNumber,
MemoryContainer memoryContainer,
int coneType,
byte[] attributesMask) |
Finds numbers of all examples from dominance cone of type
DOMINATING or DOMINATED ,
starting at given example, using given reference to memory container. |
public static final int DOMINATING
public static final int DOMINATED
public static int[] findNumbersOfDominanceConeExamples(int exampleNumber, MemoryContainer memoryContainer, int coneType)
DOMINATING
or DOMINATED
,
starting at given example, using given reference to memory container.
Calls appropriate private method to calculate dominance cone of given type.exampleNumber
- number of example for which cone should be calculatedmemoryContainer
- reference to memory container containing given exampleconeType
- type of the cone. Can be DOMINATING
or DOMINATED
.java.lang.NullPointerException
- when memory container is null
or when it contains no attributes or no examplesjava.lang.IndexOutOfBoundsException
- when given example number is too small or too big for given memory containerInvalidValueException
- when required type of cone is different from
DOMINATING
or DOMINATED
public static int[] findNumbersOfDominanceConeExamples(int exampleNumber, MemoryContainer memoryContainer, int coneType, byte[] attributesMask)
DOMINATING
or DOMINATED
,
starting at given example, using given reference to memory container.
This method wraps findNumbersOfDominanceConeExamples(int, MemoryContainer, int)
method -
sets temporary mask for attributes,
gets result of findNumbersOfDominanceConeExamples(int, MemoryContainer, int)
method
(which uses temporary mask) and finally deletes the mask.exampleNumber
- number of example for which cone should be calculatedmemoryContainer
- reference to memory container containing given exampleconeType
- type of the cone. Can be DOMINATING
or DOMINATED
.attributesMask
- Mask for attributes, allowing dominance cone calculations for a subset of active and condition attributes.
It is checked if length of the mask is equal to the number of attributes in memory container.
If attributesMask(i) is equal to zero,
than corresponding attribute is not taken into account at all when calculating dominance cone, even if it's active and condition.
If attributesMask(i) is different than zero,
than corresponding attribute is considered further - it is checked if it's active and condition.
In fact only mask values corresponding to active and condition attributes are important. All other values are
not taken into account and may be any.
If all active and condition attributes are masked (i.e., all mask entries corresponding to active and
condition attributes are equal to zero), then resulting dominance cone will contain all examples from given memory container.java.lang.NullPointerException
- when memory container is null
or when it contains no attributes or no examplesjava.lang.IndexOutOfBoundsException
- when given example number is too small or too big for given memory containerInvalidValueException
- when required type of cone is different from
DOMINATING
or DOMINATED
InvalidValueException
- when the length of the specified mask is different than the number of attributes
in given memory container