fuzzy_rule {rLDCP} | R Documentation |
Define the fuzzy rule
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
fuzzy_rule(...)
Arguments
... |
the 0 and 1 that compose the fuzzy rule. |
Value
the fuzzy_rule <- c(...)
Examples
# 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).
#
[Package rLDCP version 1.0.2 Index]