Rule | R Documentation |
Class to manage a Fis rule
premises
integer vector, The premises of the rule
A premise is the 1-based index of MF in the FisIn
0 means the input is not taken into account for this rule, i.e. the rule is incomplete
The vector length must be equal to the number of inputs in the Fis
conclusions
numeric vector, The conclusions of the rule
A conclusion is a numeric value for crisp output FisOutCrisp, or the 1-based index of MF in the fuzzy output FisOutFuzzy
The vector length must be equal to the number of outputs in the Fis
Rule()
The default constructor to build an empty rule
The rule is initialized with empty premises and conclusions
Rule object
Rule(premises, conclusions)
The constructor to build a rule
premises
integer vector, The premises of the rule (the vector length must be equal to the number of inputs in the Fis)
conclusions
numeric vector, The conclusions of the rule (the vector length must be equal to the number of outputs in the Fis)
Rule object
NewRule
Fuzzy Logic Elementary Glossary
rule1 <- NewRule()
rule1$premises <- c(1, 2, 0)
rule1$conclusions <- c(1, 2)
rule2 <- NewRule(c(2, 1, 1), c(2, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.