fuzzy_rule: Define the fuzzy rule

Description Usage Arguments Value Examples

Description

We define a fuzzy rule using the numbers 1 and 0. rule(0,0,1,0,0, 0,0,1,0,0, 0,0,1,0,0, 0,0,1)

This is an example of fuzzy_rule(0,0,1,0,0,1). In the fuzzy rule the number 1 means that the linguistic expression is included and the number 0 means that the linguistic expression is not included.

Usage

1

Arguments

...

the 0 and 1 that compose the fuzzy rule.

Value

the fuzzy_rule <- c(...)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# For example, the rule "IF CPtemp IS warm THEN CPcomfort IS very comfortable"
#is coded as:

 fuzzy_rule(0,1,0,0,0,1)

# Where, the first three values (0,1,0) correspond with the linguistic
# expressions Atemp=(cold, warm, hot) that define the room temperature (CPtemp).
# The last three values (0,0,1) are related to the linguistic expressions
# Acomfort=(uncomfortable, comfortable and very comfortable) that define
# the room comfort (CPcomfort).
#

Example output

[1] 0 1 0 0 0 1
attr(,"class")
[1] "fuzzy_rule"

rLDCP documentation built on May 2, 2019, 2:30 a.m.

Related to fuzzy_rule in rLDCP...