Description Usage Arguments Value Examples
Make an inference with the fuzzy rules.
1 | infer_rules(rules, operator, input)
|
rules |
the set of fuzzy rules. |
operator |
the |
input |
is the list of validity degrees related to the input |
A vector that containd the result of the inference.
1 2 3 4 5 6 7 8 9 10 | ## In the example the input of the fuzzy rule correspond with two CPs and each CP has 3
## linguistic variables, e.g, {"bad", "good", "very good"}. The output also
## correspond with a CP with 3 linguistic variables.
infer_rules(fuzzy_rules(fuzzy_rule(0,0,1, 0,0,1, 0,0,1),
fuzzy_rule(1,0,0, 1,0,0, 1,0,0),
fuzzy_rule(0,1,0, 0,1,0, 0,1,0)),
operator(min, max),
list(c(0,0.5,0.5),c(0.5,0.5,0)))
## [1] 0.0 0.5 0.0
|
[1] 0.0 0.5 0.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.