Description Usage Arguments Value Examples
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.
1 |
... |
the 0 and 1 that compose the fuzzy rule. |
the fuzzy_rule <- c(...)
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).
#
|
[1] 0 1 0 0 0 1
attr(,"class")
[1] "fuzzy_rule"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.