Description Details Public fields Methods
An information table consists of the decision table and meta-data.
This class stores the decision table, and meta-data. The decision table consists of an object identifier column, a decision column, and at least one additional attribute. The meta-data consist of the attribute names, their types, and the alpha and beta values for similarity attributes.
decisionTable
the set of examples
metaData
meta-data of the attributes, including their name and type, along with alpha and beta parameters for similarity variables
objects
vector of object names
new()
Create a new information table object.
InformationTable$new(decisionTable, metaData = NA)
decisionTable
data frame containing the decision examples
metaData
data frame containing the meta-data of the attributes. This parameter is optional, and if not provided, we assume all dominance attributes.
isCompatible()
Method to determine whether another information table is compatible with this one.
InformationTable$isCompatible(it)
it
the information table to compare to
getType()
Method to get the type of an attribute.
InformationTable$getType(attribute)
attribute
the name of the attribute
the type
removeObjects()
Method for creating a new information table by removing examples of belonging to the specified objects.
InformationTable$removeObjects(objects)
objects
the object to filter out
a new information table instance
downwardClassUnion()
Method for calculating the downward class union.
InformationTable$downwardClassUnion(class)
class
the decision class to compare to
the set of objects in the downward class union
upwardClassUnion()
Method for calculating the upward class union.
InformationTable$upwardClassUnion(class)
class
the decision class to compare to
the set of objects in the upward class union
encodeDecisionColumn()
Method for encoding the decision column to the 1:N range, where N is the cardinality of this column.
InformationTable$encodeDecisionColumn()
the encoded decision column
decodeDecisions()
Method for decoding 1:N-encoded decisions.
InformationTable$decodeDecisions(encoded)
encoded
a vector of encoded decisions
a vector with the decoded decisions
classUnions()
Method for calculating all downward- and upward class unions at once.
InformationTable$classUnions()
a pair of matrices for both class unions, where each row represents a class, and each column represents an object
partitionAttributes()
Method that partitions attribute set P into into sets of the same attribute type. Only types relevant for the dominance relation are considered (indiscernibility, similarity, and dominance).
InformationTable$partitionAttributes(P)
P
the set of attributes to partition - vector of attribute names
a list of attribute sets Function to determine whether x dominates y on the mixed attribute set P.
dominates()
InformationTable$dominates(x, y, P, compareSimilaritySwitched = FALSE)
x
the left operand - object name
y
the right operand - object name
P
the set of attributes to test - vector of attribute names
compareSimilaritySwitched
whether to test similarity with the parameters switched
whether x dominates y on attribute set P
dominatingAndDominatedSets()
Method for calculating the P-dominated and P-dominating sets all at once.
InformationTable$dominatingAndDominatedSets(P)
P
the set of attributes to test - vector of attribute names Method to determine whether x is similar to y on attribute q.
similar()
InformationTable$similar(x, y, q)
x
the left operand - a data frame
y
the right operand - a data frame
q
the attribute to test
whether x is similar to y on attribute q
dominatingSet()
This method calculates the dominating set of an object with respect to a criterion set.
InformationTable$dominatingSet(x, P, compareSimilaritySwitched = TRUE)
x
the object - object name
P
the criterion set
compareSimilaritySwitched
whether to test similarity with the parameters switched
the set of objects that dominate object x
dominatedSet()
This method calculates the dominated set of an object with respect to a criterion set.
InformationTable$dominatedSet(x, P, compareSimilaritySwitched = FALSE)
x
the object - object name
P
the criterion set
compareSimilaritySwitched
whether to test similarity with the parameters switched
the set of objects that are dominated by object x
upwardClassUnionUpperApproximation()
This method calculates the P-upper approximations of the upward class unions.
InformationTable$upwardClassUnionUpperApproximation(dominating_U)
dominating_U
the P-dominating sets (U) - matrix
the approximations for all classes in a boolean matrix from
upwardClassUnionLowerApproximation()
This method calculates the P-lower approximations of the upward class unions.
InformationTable$upwardClassUnionLowerApproximation(downward_U)
downward_U
the P-upper approximations of the downward class unions - matrix
the approximations for all classes in a boolean matrix from
downwardClassUnionUpperApproximation()
This method calculates the P-upper approximations of the downward class unions.
InformationTable$downwardClassUnionUpperApproximation(dominated_U)
dominated_U
the P-dominated sets (U) - matrix
the approximations for all classes in a boolean matrix from
downwardClassUnionLowerApproximation()
This method calculates the P-lower approximations of the downward class unions.
InformationTable$downwardClassUnionLowerApproximation(upward_U)
upward_U
the P-upper approximations of the upward class unions - matrix
the approximations for all classes in a boolean matrix from
roughSets()
This method calculates the P-lower and P-upper approximations of class unions and boundary regions.
InformationTable$roughSets(P)
P
the attribute set
a named list of the approximations
boundaryRegions()
This method calculates the boundary regions of rough sets.
InformationTable$boundaryRegions(roughSets)
roughSets
the class union approximations.
the upward and downward boundary regions
accuracyOfApproximation()
This method calculates the accuracy of the approximations of the class unions.
InformationTable$accuracyOfApproximation(roughSets)
roughSets
the approximations
a pair of vectors describing the accuracy of the downward and upward class union approximations
qualityOfApproximation()
This method calculates the quality of the approximations of the class unions.
InformationTable$qualityOfApproximation(boundaryRegions)
boundaryRegions
the boundary regions of the rough set
a number expressing the ratio of all P-correctly sorted actions to all actions in the decision table
clone()
The objects of this class are cloneable with this method.
InformationTable$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.