public class PCTDetector
extends java.lang.Object
| Constructor | Description |
|---|---|
PCTDetector() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
getIndexOfComprehensivePreferenceGrade(MemoryContainer pct) |
Checks if given PCT has a criterion storing comprehensive preference grades and if so - returns its index.
|
static int |
getIndexOfPairOfExamplesNumbers() |
Gets index of pair of examples' numbers for PCT
|
static boolean |
hasActiveConditionCriterionStoringPairsOfValues(MemoryContainer pct) |
Checks if given PCT has at least one active condition criterion of type
PairField. |
static boolean |
hasAttributeStoringPairsOfValues(MemoryContainer pct) |
Checks if given PCT has at least one attribute of type
PairField,
different than the attribute with the index equal to PCTDetector.getIndexOfPairOfExamplesNumbers(). |
static boolean |
isPCT(MemoryContainer memoryContainer) |
Tests if given memory container is a PCT (pairwise comparison table).
|
static void |
setIndexOfPairOfExamplesNumbers(int indexOfPairOfExamplesNumbers) |
Sets index of pair of examples' numbers
|
public static int getIndexOfPairOfExamplesNumbers()
public static void setIndexOfPairOfExamplesNumbers(int indexOfPairOfExamplesNumbers)
indexOfPairOfExamplesNumbers - index of pair of examples' numberspublic static boolean isPCT(MemoryContainer memoryContainer)
InformationTable2PCTConverter class.
Checks if given memory container has indexOfPairOfExamplesNumbers-indexed
attribute of type PairField with inner type IntegerField or CardinalField.
Moreover, checks if all active condition attributes present in given memory container are not of type SimilarityField.memoryContainer - memory container to testtrue if given memory container is a PCT, false otherwisejava.lang.NullPointerException - when memory container is nullInvalidValueException - when memory container contains no attributespublic static int getIndexOfComprehensivePreferenceGrade(MemoryContainer pct)
InformationTable2PCTConverter class.
Checks if last attribute of given memory container is decision one, has gain preference assigned,
is active and is of type FloatField.pct - tested PCTjava.lang.NullPointerException - when memory container is nullInvalidValueException - when memory container contains no attributespublic static boolean hasActiveConditionCriterionStoringPairsOfValues(MemoryContainer pct)
PairField.pct - tested PCTtrue if given PCT has at least one active condition criterion of type PairField,
false otherwisejava.lang.NullPointerException - when memory container is nullInvalidValueException - when memory container contains no attributespublic static boolean hasAttributeStoringPairsOfValues(MemoryContainer pct)
PairField,
different than the attribute with the index equal to PCTDetector.getIndexOfPairOfExamplesNumbers().
This method is mainly used to check, if given PCT is susceptible to changes of dominance check method
for pairs of values. In other words, it can answer the question if changes of dominance check method
for pairs of values can influence in any way further calculations performed for given PCT.pct - tested PCTtrue if given PCT has at least one attribute of type PairField,
different than the attribute with the index equal to
PCTDetector.getIndexOfPairOfExamplesNumbers(),
false otherwisejava.lang.NullPointerException - when memory container is nullInvalidValueException - when memory container contains no attributes