showrule: Showing rule from fis object

Description Usage Arguments Value Examples

View source: R/FuzzyInferenceSystem.R

Description

All the rule is showing from fis object

Usage

1
showrule(fis)

Arguments

fis

A fis must be provided.

Value

Show the total of rules inside fis object

Examples

1
2
3
4
fis <- tipper()
ruleList <- rbind(c(1,1,1,1,2), c(2,0,2,1,1), c(3,2,3,1,2))
fis <- addrule(fis, ruleList)
showrule(fis)

Example output

1. If (service is poor) or (food is rancid) then (tip is cheap) (1)
2. If (service is good) then (tip is average) (1)
3. If (service is excellent) or (food is delicious) then (tip is generous) (1)
4. If (service is poor) or (food is rancid) then (tip is cheap) (1)
5. If (service is good) then (tip is average) (1)
6. If (service is excellent) or (food is delicious) then (tip is generous) (1)

FuzzyR documentation built on May 19, 2021, 9:06 a.m.

Related to showrule in FuzzyR...