fuzzy {sets} | R Documentation |
Fuzzy logic
Description
Fuzzy Logic
Usage
fuzzy_logic(new, ...)
.N.(x)
.T.(x, y)
.S.(x, y)
.I.(x, y)
Arguments
x , y |
Numeric vectors. |
new |
A character string specifying one of the available fuzzy logic “families” (see details). |
... |
optional parameters for the selected family. |
Details
A call to fuzzy_logic()
without arguments returns the currently
set fuzzy logic, i.e., a named list with four
components N
, T
, S
, and I
containing the
corresponding functions for negation, conjunction
(“t-norm”), disjunction (“t-conorm”), and residual
implication (which may not be available).
The package provides several fuzzy logic families.
A concrete fuzzy logic is selected
by calling fuzzy_logic
with a character
string specifying the family name, and optional parameters. Let us
refer to as the standard negation, and,
for a t-norm
, let
be the
dual (or complementary) t-conorm. Available specifications and
corresponding families are as follows, with the standard negation used
unless stated otherwise.
"Zadeh"
Zadeh's logic with
and
. Note that the minimum t-norm, also known as the Gödel t-norm, is the pointwise largest t-norm, and that the maximum t-conorm is the smallest t-conorm.
"drastic"
the drastic logic with t-norm
if
,
if
, and 0 otherwise, and complementary t-conorm
if
,
if
, and 1 otherwise. Note that the drastic t-norm and t-conorm are the smallest t-norm and largest t-conorm, respectively.
"product"
the family with the product t-norm
and dual t-conorm
.
"Lukasiewicz"
the Lukasiewicz logic with t-norm
and dual t-conorm
.
"Fodor"
the family with Fodor's nilpotent minimum t-norm given by
if
, and 0 otherwise, and the dual t-conorm given by
if
, and 1 otherwise.
"Frank"
the family of Frank t-norms
,
, which gives the Zadeh, product and Lukasiewicz t-norms for
, 1, and
, respectively, and otherwise is given by
.
"Hamacher"
the three-parameter family of Hamacher, with negation
, t-norm
, and t-conorm
, where
and
. This gives a deMorgan triple (for which
iff
. The parameters can be specified as
alpha
,beta
andgamma
, respectively. Ifis not given, it is taken as
. The default values for
and
are 0, so that by default, the product family is obtained.
The following parametric families are obtained by combining the corresponding families of t-norms with the standard negation.
"Schweizer-Sklar"
the Schweizer-Sklar family
,
, which gives the Zadeh (minimum), product and drastic t-norms for
,
, and
, respectively, and otherwise is given by
.
"Yager"
the Yager family
,
, which gives the drastic and minimum t-norms for
and
, respectively, and otherwise is given by
.
"Dombi"
the Dombi family
,
, which gives the drastic and minimum t-norms for
and
, respectively, and otherwise is given by
if
or
, and
if both
and
.
"Aczel-Alsina"
the family of t-norms
,
, introduced by Aczél and Alsina, which gives the drastic and minimum t-norms for
and
, respectively, and otherwise is given by
.
"Sugeno-Weber"
the family of t-norms
,
, introduced by Weber with dual t-conorms introduced by Sugeno, which gives the drastic and product t-norms for
and
, respectively, and otherwise is given by
.
"Dubois-Prade"
the family of t-norms
,
, introduced by Dubois and Prade, which gives the minimum and product t-norms for
and
, respectively, and otherwise is given by
.
"Yu"
the family of t-norms
,
, introduced by Yu, which gives the product and drastic t-norms for
and
, respectively, and otherwise is given by
.
By default, the Zadeh logic is used.
.N.
, .T.
, .S.
, and .I.
are dynamic
functions, i.e., wrappers that call the corresponding function of the
current fuzzy logic. Thus, the behavior of code using these
functions will change according to the chosen logic.
References
C. Alsina, M. J. Frank and B. Schweizer (2006), Associative Functions: Triangular Norms and Copulas. World Scientific. ISBN 981-256-671-6.
J. Dombi (1982), A general class of fuzzy operators, the De Morgan class of fuzzy operators and fuzziness measures induced by fuzzy operators, Fuzzy Sets and Systems 8, 149–163.
J. Fodor and M. Roubens (1994), Fuzzy Preference Modelling and Multicriteria Decision Support. Kluwer Academic Publishers, Dordrecht.
D. Meyer and K. Hornik (2009), Generalized and customizable sets in R, Journal of Statistical Software 31(2), 1–27. doi:10.18637/jss.v031.i02.
B. Schweizer and A. Sklar (1983), Probabilistic Metric Spaces. North-Holland, New York. ISBN 0-444-00666-4.
Examples
x <- c(0.7, 0.8)
y <- c(0.2, 0.3)
## Use default family ("Zadeh")
.N.(x)
.T.(x, y)
.S.(x, y)
.I.(x, y)
## Switch family and try again
fuzzy_logic("Fodor")
.N.(x)
.T.(x, y)
.S.(x, y)
.I.(x, y)