public class JmafDominanceConeCalculator
extends java.lang.Object
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
|
Constructor | Description |
---|---|
JmafDominanceConeCalculator() |
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.
Uses cumulative dominance with missing values support.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.
Uses cumulative dominance with missing values support.
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 conditional 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 conditional.
If attributesMask(i) is different than zero,
than corresponding attribute is considered further - it is checked if it's active and conditional.
In fact only mask values corresponding to active and conditional attributes are important. All other values are
not taken into account and may be any.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 length of specified mask is different than number of attributes
in given memory container