summary.LowerUpperApproximation: The summary function of lower and upper approximations based...

View source: R/IOFunctions.R

summary.LowerUpperApproximationR Documentation

The summary function of lower and upper approximations based on RST and FRST

Description

This function enables the output of a summary of the lower and upper approximations.

Usage

## S3 method for class 'LowerUpperApproximation'
summary(object, ...)

Arguments

object

a "LowerUpperApproximation" object. See BC.LU.approximation.FRST and BC.LU.approximation.RST.

...

the other parameters.

Author(s)

Lala Septem Riza

Examples

#######################################
## Example: Using simple data set
#######################################
dt.ex1 <- data.frame(c(1,0,2,1,1,2,2,0), c(0, 1,0, 1,0,2,1,1),
                        c(2,1,0,0,2,0,1,1), c(2,1,1,2,0,1,1,0), c(0,2,1,2,1,1,2,1))
colnames(dt.ex1) <- c("aa", "bb", "cc", "dd", "ee")
decision.table <- SF.asDecisionTable(dataset = dt.ex1, decision.attr = 5,
                                     indx.nominal = c(1:5))

P <- c(2,3)

####### Compute indiscernibility relation #######
IND <- BC.IND.relation.RST(decision.table, feature.set = P)

####### Compute lower and upper approximation #####
roughset <- BC.LU.approximation.RST(decision.table, IND)

summary(roughset)

RoughSets documentation built on May 29, 2024, 7:34 a.m.