public class DominanceConesForExample
extends java.lang.Object
Constructor | Description |
---|---|
DominanceConesForExample(int exampleNumber,
MemoryContainer memoryContainer,
int[] positiveDominanceCone,
int[] negativeDominanceCone) |
Constructor storing example's number, example's memory container and both dominance cones calculated for
example with given number.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getExampleNumber() |
Gets number of example for which this object is created
|
MemoryContainer |
getMemoryContainer() |
Gets memory container for which this object is created
|
int[] |
getNegativeDominanceCone() |
Gets example's negative dominance cone
|
int[] |
getPositiveDominanceCone() |
Gets example's positive dominance cone
|
public DominanceConesForExample(int exampleNumber, MemoryContainer memoryContainer, int[] positiveDominanceCone, int[] negativeDominanceCone)
exampleNumber
- number of example from given memory containermemoryContainer
- memory container to which example with given number belongspositiveDominanceCone
- positive dominance cone calculated for example with given numbernegativeDominanceCone
- negative dominance cone calculated for example with given numberjava.lang.NullPointerException
- when given memory container is null
InvalidValueException
- when memory container contains no attributes or no examplesInvalidValueException
- when positive or negative dominance cone is not null
but does not contain at least one example's numberjava.lang.IndexOutOfBoundsException
- when given index of example is too small or too big for the considered memory containerpublic int getExampleNumber()
public MemoryContainer getMemoryContainer()
public int[] getPositiveDominanceCone()
public int[] getNegativeDominanceCone()