ConfirmatoryMonotonicUnion
, PairDecisionMonotonicUnion
public class MonotonicUnion extends Union
Modifier and Type | Field | Description |
---|---|---|
static int |
DEFAULT_MEASURE |
Default value of
measure flag. |
static int |
EPSILON |
Possible value of
measure , indicating that measure $\epsilon$ should be used when calculating approximations and boundary
of this monotonic union. |
static int |
EPSILON_PRIM |
Possible value of
measure , indicating that measure $\epsilon'$ should be used when calculating approximations and boundary
of this monotonic union. |
static int |
EPSILON_STAR |
Possible value of
measure , indicating that measure $\epsilon*$ should be used when calculating approximations and boundary
of this monotonic union. |
NONNEGATIVE_CONFIRMATION, POSITIVE_CONFIRMATION
Constructor | Description |
---|---|
MonotonicUnion(int type,
int decisionCriterionNumber,
Field basicClass,
MemoryContainer memoryContainer) |
Constructs union of given type, using decision criterion with given number, given basic decision class and
given reference to memory container for which this union is defined.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Clones this monotonic union
|
static int |
getMeasure() |
Gets measure used to calculate approximations and boundary of this monotonic union.
|
double |
getTheMostRestrictiveVariableConsistencyParameterValue() |
Gets the most restrictive value of used variable consistency parameter
|
void |
reset() |
Resets all results of calculations stored in this union and causes that each first call to any 'get'
method retrieving any approximation, boundary, quality of approximation or accuracy of approximation
will be connected with additional (re)calculations.
|
static void |
resetMeasure() |
Restores default value of
measure flag. |
void |
setBoundary(int[] boundary,
double boundaryVCParameterValue,
byte[] boundaryAttributesMask,
int boundaryPairFieldDominanceCheckMethod,
int boundaryMeasure) |
Sets boundary of this union and all parameters describing conditions under which this boundary has been calculated
|
void |
setLowerApproximation(int[] lowerApproximation,
double lowerApproximationVCParameterValue,
byte[] lowerApproximationAttributesMask,
int lowerApproximationPairFieldDominanceCheckMethod,
int lowerApproximationMeasure) |
Sets lower approximation of this union and all parameters describing conditions under which this approximation has been calculated
|
static void |
setMeasure(int measure) |
Sets measure used to calculate approximations and boundary of this monotonic union.
|
void |
setUpperApproximation(int[] upperApproximation,
double upperApproximationVCParameterValue,
byte[] upperApproximationAttributesMask,
int upperApproximationPairFieldDominanceCheckMethod,
int upperApproximationMeasure) |
Sets upper approximation of this union and all parameters describing conditions under which this approximation has been calculated
|
boolean |
variableConsistencyParameterValueIsTheMostRestrictiveOne(double inconsistencyMeasureThreshold) |
Tells if given variable consistency parameter value is the most restrictive one.
|
containsExample, getAccuracyOfApproximation, getAccuracyOfApproximation, getAccuracyOfApproximation, getAccuracyOfApproximation, getBasicClass, getBNDRegionExamples, getBNDRegionExamples, getBNDRegionExamples, getBNDRegionExamples, getBoundary, getBoundary, getBoundary, getBoundary, getCharacteristicDecisionClass, getExamples, getExamplesSet, getInconsistentExamplesForExtendedLowerApproximation, getInconsistentExamplesForExtendedLowerApproximation, getLowerApproximation, getLowerApproximation, getLowerApproximation, getLowerApproximation, getMemoryContainer, getNEGRegionExamples, getNEGRegionExamples, getNeutralExamples, getNeutralExamplesSet, getPOSRegionExamples, getPOSRegionExamples, getPOSRegionExamples, getPOSRegionExamples, getQualityOfApproximation, getQualityOfApproximation, getQualityOfApproximation, getQualityOfApproximation, getUpperApproximation, getUpperApproximation, getUpperApproximation, getUpperApproximation, setBoundary, setLowerApproximation, setUpperApproximation, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exampleBelongsToThisUnion, getBasicClassForAdjacentOppositeUnion, getDecisionAttributeNumber, getDecisionCriterionNumber, getDescription, getNEGRegionExamples, getNEGRegionExamples, getType, getUpperApproximation, getUpperApproximation, getUpperApproximation, getUpperApproximation, setBoundary, setLowerApproximation, setUpperApproximation
public static final int EPSILON
measure
, indicating that measure $\epsilon$ should be used when calculating approximations and boundary
of this monotonic union. This measure has monotonicity properties (m1), (m2) and (m4).public static final int EPSILON_STAR
measure
, indicating that measure $\epsilon*$ should be used when calculating approximations and boundary
of this monotonic union. This measure has monotonicity properties (m1), (m2), (m3) and (m4).public static final int EPSILON_PRIM
measure
, indicating that measure $\epsilon'$ should be used when calculating approximations and boundary
of this monotonic union. This measure has monotonicity properties (m1), (m2), (m3) and (m4).public static final int DEFAULT_MEASURE
public MonotonicUnion(int type, int decisionCriterionNumber, Field basicClass, MemoryContainer memoryContainer)
type
- see Union(int, int, Field, MemoryContainer)
decisionCriterionNumber
- see Union(int, int, Field, MemoryContainer)
basicClass
- see Union(int, int, Field, MemoryContainer)
memoryContainer
- see Union(int, int, Field, MemoryContainer)
java.lang.NullPointerException
- see Union(int, int, Field, MemoryContainer)
InvalidValueException
- see Union(int, int, Field, MemoryContainer)
java.lang.IndexOutOfBoundsException
- see Union(int, int, Field, MemoryContainer)
InvalidTypeException
- see Union(int, int, Field, MemoryContainer)
ValueNotFoundException
- see Union(int, int, Field, MemoryContainer)
public static void setMeasure(int measure)
EPSILON
, EPSILON_STAR
or EPSILON_PRIM
.measure
- measure used to calculate approximations and boundary of this monotonic unionInvalidValueException
- when given measure is none of EPSILON
, EPSILON_STAR
and EPSILON_PRIM
public static int getMeasure()
public static void resetMeasure()
measure
flag.public boolean variableConsistencyParameterValueIsTheMostRestrictiveOne(double inconsistencyMeasureThreshold)
0.0
.variableConsistencyParameterValueIsTheMostRestrictiveOne
in class ApproximatedEntity
inconsistencyMeasureThreshold
- variable consistency parameter value to be checkedtrue
if given inconsistency measure threshold has the most restrictive value 0.0
, false otherwisepublic double getTheMostRestrictiveVariableConsistencyParameterValue()
getTheMostRestrictiveVariableConsistencyParameterValue
in class ApproximatedEntity
public void reset()
validate
method and throws
appropriate exception if any irregularity has been found.validate
method,
which is called here.public void setLowerApproximation(int[] lowerApproximation, double lowerApproximationVCParameterValue, byte[] lowerApproximationAttributesMask, int lowerApproximationPairFieldDominanceCheckMethod, int lowerApproximationMeasure)
lowerApproximation
- array with numbers of objects from memory container which belong to lower approximation of this unionlowerApproximationVCParameterValue
- VC-DRSA parameter value for which given lower approximation has been calculated (VC-DRSA)lowerApproximationAttributesMask
- mask for attributes allowing lower approximation calculations for a subset
of active and conditional attributes.
It is checked if length of the mask is equal to the quantity of attributes in memory container.
If attributesMask(i) is equal to zero, than corresponding attribute has not been taken into account
at all when calculating lower approximation. If attributesMask(i) is different than zero,
than corresponding attribute has been taken into account when calculating lower approximation.lowerApproximationPairFieldDominanceCheckMethod
- dominance check method for attributes of type PairField
,
which has been used to calculate given lower approximation. Should be either PairField.STRICT_ORDINAL_DOMINANCE_CHECK_METHOD
or PairField.CLASSIC_ORDINAL_DOMINANCE_CHECK_METHOD
.lowerApproximationMeasure
- measure used to calculate lower approximation of this monotonic union. Should be either
EPSILON
, EPSILON_STAR
or EPSILON_PRIM
.InvalidValueException
- when lower approximation measure is none of EPSILON
, EPSILON_STAR
and EPSILON_PRIM
,
when VC-DRSA parameter value is outside [0, 1] range,
when length of the mask for attributes is different than quantity of attributes in memory container
or when lowerApproximationPairFieldDominanceCheckMethod
is neither
PairField.STRICT_ORDINAL_DOMINANCE_CHECK_METHOD
nor PairField.CLASSIC_ORDINAL_DOMINANCE_CHECK_METHOD
public void setUpperApproximation(int[] upperApproximation, double upperApproximationVCParameterValue, byte[] upperApproximationAttributesMask, int upperApproximationPairFieldDominanceCheckMethod, int upperApproximationMeasure)
upperApproximation
- array with numbers of objects from memory container which belong to upper approximation of this unionupperApproximationVCParameterValue
- VC-DRSA parameter value for which given upper approximation has been calculated (VC-DRSA)upperApproximationAttributesMask
- mask for attributes allowing upper approximation calculations for a subset
of active and conditional attributes.
It is checked if length of the mask is equal to the quantity of attributes in memory container.
If attributesMask(i) is equal to zero, than corresponding attribute has not been taken into account
at all when calculating upper approximation. If attributesMask(i) is different than zero,
than corresponding attribute has been taken into account when calculating upper approximation.upperApproximationPairFieldDominanceCheckMethod
- dominance check method for attributes of type PairField
,
which has been used to calculate given upper approximation. Should be either PairField.STRICT_ORDINAL_DOMINANCE_CHECK_METHOD
or PairField.CLASSIC_ORDINAL_DOMINANCE_CHECK_METHOD
.upperApproximationMeasure
- measure used to calculate upper approximation of this monotonic union. Should be either
EPSILON
, EPSILON_STAR
or EPSILON_PRIM
.InvalidValueException
- when upper approximation measure is none of EPSILON
, EPSILON_STAR
and EPSILON_PRIM
,
when VC-DRSA parameter value is outside [0, 1] range,
when length of the mask for attributes is different than quantity of attributes in memory container
or when upperApproximationPairFieldDominanceCheckMethod
is neither
PairField.STRICT_ORDINAL_DOMINANCE_CHECK_METHOD
nor PairField.CLASSIC_ORDINAL_DOMINANCE_CHECK_METHOD
public void setBoundary(int[] boundary, double boundaryVCParameterValue, byte[] boundaryAttributesMask, int boundaryPairFieldDominanceCheckMethod, int boundaryMeasure)
boundary
- array with numbers of objects from memory container which belong to boundary of this unionboundaryVCParameterValue
- VC-DRSA parameter value for which given boundary has been calculated (VC-DRSA)boundaryAttributesMask
- mask for attributes allowing boundary calculations for a subset
of active and conditional attributes.
It is checked if length of the mask is equal to the quantity of attributes in memory container.
If attributesMask(i) is equal to zero, than corresponding attribute has not been taken into account
at all when calculating boundary. If attributesMask(i) is different than zero,
than corresponding attribute has been taken into account when calculating boundary.boundaryPairFieldDominanceCheckMethod
- dominance check method for attributes of type PairField
,
which has been used to calculate given boundary. Should be either PairField.STRICT_ORDINAL_DOMINANCE_CHECK_METHOD
or PairField.CLASSIC_ORDINAL_DOMINANCE_CHECK_METHOD
.boundaryMeasure
- measure used to calculate boundary of this monotonic union. Should be either
EPSILON
, EPSILON_STAR
or EPSILON_PRIM
.InvalidValueException
- when boundary measure is none of EPSILON
, EPSILON_STAR
and EPSILON_PRIM
,
when VC-DRSA parameter value is outside [0, 1] range,
when length of the mask for attributes is different than quantity of attributes in memory container
or when boundaryPairFieldDominanceCheckMethod
is neither
PairField.STRICT_ORDINAL_DOMINANCE_CHECK_METHOD
nor PairField.CLASSIC_ORDINAL_DOMINANCE_CHECK_METHOD