This package is the R implementation of functions to manage a Fuzzy
Inference System (FIS) provided by the open source software FisPro.
FisPro
allows to create Fuzzy Inference Systems and to use them for reasoning
purposes, especially for simulating a physical or biological system.
In this brief User Guide we describe how to build and use a FIS to infer
input values.
See Fuzzy
Logic Elementary Glossary for more details about Fuzzy Logic.
The FIS configuration file can be designed using the FisPro open source software.
Create a new empty FIS.
The design must be completed using the
available functions to add inputs, outputs and rules before it can be
used for inference.
Add 2 inputs to the FIS.
Create the first input with 2 MFs regular standardized fuzzy partition:
Create the second input with 3 MFs:
Add 2 outputs to the FIS.
Create a crisp output with range [0, 1]:
Create a fuzzy output with 2 MFs regular standardized fuzzy partition in range [0, 1]:
Add 2 rules to the FIS.
Each rule is initialized with a vector of
premises and conclusions.
- a premise is the 1-based index of MF in
the input [FisIn], 0 means the rule is incompelete.
- a conclusion
is a numeric value for crisp output [FisOutCrisp], or the 1-based index
of MF in the fuzzy output [FisOutFuzzy].
In this example the second
rule is incomplete, the second input of the FIS has no effect on this
rule.
Infers all outputs:
Infers first output:
Infers second output:
Infers dataset: