conditionReduct: CONDITION REDUCT

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/ConditionReduct.R

Description

User friendly constructor of an instance of the class Condition Reduct. Objects of this class can be created by the user or by objects of the class Decision Table.

Usage

1
conditionReduct(theDecisionTable, theColumnIds)

Arguments

theDecisionTable

A decision table object

theColumnIds

A numeric vector representing the column Ids of the decision table which conform the reduct. The decision Id columns is needed, which is always the last column.

Value

It returns a Condition Reduct object.

Author(s)

Alber Sanchez [email protected]

References

Pawlak, Zdzislaw 1991 Rough Sets: Theoretical Aspects of Reasoning About Data Dordrecht: Kluwer Academic Publishing.

See Also

ConditionReduct-class

Examples

1
2
3
4
5
6
7
8
exampleMatrix2 <- matrix(c(1,1,0,1,1,2,2,0,0,0,1,1,1,2,0,
0,0,0,0,0,2,1,0,0,1,2,2,2,1,1,0,0,2,2,2),ncol = 5)
dt <- new(Class="DecisionTable",decisionTable = exampleMatrix2)
cr1 <- conditionReduct(dt,c(1,2,4,5))
isConditionReduct(cr1) == TRUE# Test if cr1 actually is a condition reduct of dt
cr2 <- findFirstConditionReduct(dt)# Gets the first found condition reduct in dt
listCr1 <- findSmallestReductFamilyFromCore(dt)# Gets a set of the least condition reducts of dt
listCr2 <- findAllReductsFromCore(dt)# Gets all the reducts from dt

RoughSetKnowledgeReduction documentation built on May 30, 2017, 8:13 a.m.