public class SimilarityTableDetector
extends java.lang.Object
| Constructor | Description |
|---|---|
SimilarityTableDetector() |
| Modifier and Type | Method | Description |
|---|---|---|
static int |
getIndexOfDecisionAttribute(MemoryContainer similarityTable) |
Checks if given similarity table has a criterion storing decision value of limit object and if so - returns its index.
|
static int |
getIndexOfPairOfExamplesNumbers() |
Gets index of pair of examples' numbers for similarity table
|
static int |
getReferenceObjectNumber(MemoryContainer similarityTable) |
Gets index of reference object for which given similarity table has been created
|
static boolean |
isSimilarityTable(MemoryContainer memoryContainer) |
Tests if given memory container is a similarity 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 int getIndexOfDecisionAttribute(MemoryContainer similarityTable)
InformationTable2SimilarityTableConverter class.
Checks if last attribute of given memory container is decision one, has gain preference assigned,
is active and is of type SimpleField.similarityTable - tested similarity tablejava.lang.NullPointerException - when memory container is nullInvalidValueException - when memory container contains no attributespublic static boolean isSimilarityTable(MemoryContainer memoryContainer)
InformationTable2SimilarityTableConverter class.
Checks if given memory container has indexOfPairOfExamplesNumbers-indexed
attribute of type PairField with inner type IntegerField or CardinalField.
Moreover, checks if all active and condition attributes present in given memory container are of type SimilarityField.memoryContainer - memory container to testtrue if given memory container is a similarity table, false otherwisejava.lang.NullPointerException - when memory container is nullInvalidValueException - when memory container contains no attributespublic static int getReferenceObjectNumber(MemoryContainer similarityTable)
similarityTable - considered similarity tablejava.lang.NullPointerException - when memory container is nullInvalidValueException - when memory container contains no attributes or no examples