Fuzzy Logic
Fuzzy Logic
• Classical set theory allows the membership of the elements in the set
in binary terms, a bivalent condition - an element either belongs or
does not belong to the set.
• Example:
Words like young, tall, good, or high are fuzzy.
− For some people, age 25 is young, and for others, age 35 is young.
However, our systems are unable to answer many questions. The reason
is, most systems are designed based upon classical set theory and
two-valued logic which is unable to cope with unreliable and incomplete
information and give expert opinions.
• Classical Set Theory
A Set is any well defined collection of objects. An object in a set is
called an element or member of that set.
1 if x∈ X
µA (x) =
0 otherwise
Α : Χ → [0, 1]
A(x) = 1 , x is a member of A Eq.(1)
A(x) = 0 , x is not a member of A
1 if x ∈X
µA (x) = Eq.(2)
0 otherwise
− Thus in classical set theory µA (x) has only the values 0 ('false')
and 1 ('true''). Such sets are called crisp sets.
• Fuzzy Set Theory
Fuzzy set theory is an extension of classical set theory where
elements have varying degrees of membership. A logic based on
the two truth values, True and False, is sometimes inadequate when
describing human reasoning. Fuzzy logic uses the whole interval between
0 (false) and 1 (true) to describe human reasoning.
− A Fuzzy Set is any set that allows its members to have different
− Fuzzy logic is derived from fuzzy set theory dealing with reasoning
that is approximate rather than precisely deduced from classical
predicate logic.
0 0
1.8 m Height x 1.8 m Height x
A student of height 1.79m would belong to both tall and not tall sets
with a particular degree of membership.
As the height increases the membership grade within the tall set would
increase whilst the membership grade within the not-tall set would
decrease.
• Capturing Uncertainty
Instead of avoiding or ignoring uncertainty, Lotfi Zadeh introduced Fuzzy
Set theory that captures uncertainty.
Α : Χ → [0, 1]
µ
µc (x) µF (x)
1
C F
0.5
0 x
A Fuzzy Set is any set that allows its members to have different degree
of membership, called membership function, in the interval [0 , 1].
The first two numbers specify the start and end of the universal space,
and the third argument specifies the increment between elements.
This gives the user more flexibility in choosing the universal space.
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Sets SMALL
• Graphic Interpretation of Fuzzy Sets PRIME Numbers
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Sets PRIME
In any application of sets or fuzzy sets theory, all sets are subsets of
a fixed set called universal space or universe of discourse denoted by X.
Universal space X as a fuzzy set is a function equal to 1 for all elements.
UNIVERSALSPACE = FuzzySet {{1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {6, 1},
{7, 1}, {8, 1}, {9, 1}, {10, 1}, {11, 1}, {12, 1}}
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Set UNIVERSALSPACE
Examples:
1. Let N be the universal space of the days of the week.
N = {Mo, Tu, We, Th, Fr, Sa, Su}. N is finite.
2. Let M = {1, 3, 5, 7, 9, ...}. M is infinite.
3. Let L = {u | u is a lake in a city }. L is finite.
(Although it may be difficult to count the number of lakes in a city,
but L is still a finite universal set.)
• Graphic Interpretation of Fuzzy Sets EMPTY
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Set EMPTY
Fuzzy Operations
A fuzzy set operations are the operations on fuzzy sets. The fuzzy set
operations are generalization of crisp set operations. Zadeh [1965]
formulated the fuzzy set theory in the terms of standard operations:
Complement, Union, Intersection, and Difference.
• Inclusion
Let A and B be fuzzy sets defined in the same universal space X.
The fuzzy set A is included in the fuzzy set B if and only if for every x in
the set X we have A(x) ≤ B(x)
Example :
The fuzzy set UNIVERSALSPACE numbers, defined in the universal
space X = { xi } = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12} is presented as
SetOption [FuzzySet, UniversalSpace → {1, 12, 1}]
.8
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Inclusion
FuzzyPlot [SMALL, VERYSMALL]
• Comparability
Two fuzzy sets A and B are comparable
if the condition A ⊂ B or B ⊂ A holds, ie,
if one of the fuzzy sets is a subset of the other set, they are comparable.
Example 1:
Let A = {{a, 1}, {b, 1}, {c, 0}} and
B = {{a, 1}, {b, 1}, {c, 1}}.
Then A is comparable to B, since A is a subset of B.
Example 2 :
Let C = {{a, 1}, {b, 1}, {c, 0.5}} and
D = {{a, 1}, {b, 0.9}, {c, 0.6}}.
Then C and D are not comparable since
C is not a subset of D and
D is not a subset of C.
Property Related to Inclusion :
for all x in the set X, if A(x) ⊂ B(x) ⊂
• Equality
Let A and B be fuzzy sets defined in the same space X.
Then A and B are equal, which is denoted X = Y
if and only if for all x in the set X, A(x) = B(x).
Example.
The fuzzy set B SMALL
SMALL = FuzzySet {{1, 1 }, {2, 1 }, {3, 0.9}, {4, 0.6}, {5, 0.4}, {6, 0.3},
{7, 0.2}, {8, 0.1}, {9, 0 }, {10, 0 }, {11, 0}, {12, 0}}
.8
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Note : If equality A(x) = B(x) is not satisfied even for one element x in
the set X, then we say that A is not equal to B.
• Complement
Let A be a fuzzy set defined in the space X.
Then the fuzzy set B is a complement of the fuzzy set A, if and only if,
for all x in the set X, B(x) = 1 - A(x).
.8
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
.8
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Compliment
FuzzyPlot [EMPTY, UNIVERSALSPACE]
• Union
Let A and B be fuzzy sets defined in the space X.
The union is defined as the smallest fuzzy set that contains both A and B.
The union of A and B is denoted by A ∪ B.
The following relation must be satisfied for the union operation :
for all x in the set X, (A ∪ B)(x) = Max (A(x), B(x)).
A(x) = 0.6 and B(x) = 0.4 ∴ (A ∪ B)(x) = max [0.6, 0.4] = 0.6
.8
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Union
FuzzyPlot [UNION]
The notion of the union is closely related to that of the connective "or".
Let A is a class of "Young" men, B is a class of "Bald" men.
If "David is Young" or "David is Bald," then David is associated with the
union of A and B. Implies David is a member of A ∪ B.
• Intersection
A(x) = 0.6 and B(x) = 0.4 ∴ (A ∩ B)(x) = min [0.6, 0.4] = 0.4
.8
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
Fig Graphic Interpretation of Fuzzy Union
FuzzyPlot [INTERSECTION]
• Difference
.8
.6
.4
.2
0
0 1 2 3 4 5 6 7 8 9 10 11 12 X
■ Identity:
A∪Φ =A
input = Equality [SMALL ∪ EMPTY , SMALL]
output = True
A∪X=X
input = Equality [SMALL ∪ UnivrsalSpace , UnivrsalSpace]
output = True
■ Idempotence :
A∪A=A
input = Equality [SMALL ∪ SMALL , SMALL]
output = True
■ Commutativity :
A∪B =B∪A
input = Equality [SMALL ∪ MEDIUM, MEDIUM ∪ SMALL]
output = True
■ Associativity:
A ∪ (B∪ C) = (A∪ B) ∪ C
Small = FuzzySet {{1, 1 }, {2, 1 }, {3, 0.9}, {4, 0.6}, {5, 0.4}, {6, 0.3},
{7, 0.2}, {8, 0.1}, {9, 0.7 }, {10, 0.4 }, {11, 0}, {12, 0}}
Medium = FuzzySet {{1, 0 }, {2, 0 }, {3, 0}, {4, 0.2}, {5, 0.5}, {6, 0.8},
{7, 1}, {8, 1}, {9, 0 }, {10, 0 }, {11, 0.1}, {12, 0}}
A∩Φ =Φ
input = Equality [Small ∩ Empty , Empty]
output = True
■ Identity :
A∩ X=A
input = Equality [Small ∩ UnivrsalSpace , Small]
output = True
■ Idempotence :
A∩ A=A
input = Equality [Small ∩ Small , Small]
output = True
■ Commutativity :
A∩ B=B∩ A
input = Equality [Small ∩ Big , Big ∩ Small]
output = True
■ Associativity :
A ∩ (B ∩ C) = (A ∩ B) ∩ C
input = Equality [Small ∩ (Medium ∩ Big), (Small ∩ Medium) ∩ Big]
output = True
• Additional Properties
Related to Intersection and Union
■ Distributivity:
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
input = Equality [Small ∩ (Medium ∪ Big) ,
(Small ∩ Medium) ∪ (Small ∩ Big)]
output = True
■ Distributivity:
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
input = Equality [Small ∪ (Medium ∩ Big) ,
(Small ∪ Medium) ∩ (Small ∪ Big)]
output = True
■ Law of excluded middle :
A ∪ A' = X
input = Equality [Small ∪ NotSmall , UnivrsalSpace ]
output = True
■ Law of contradiction
A ∩ A' = Φ
input = Equality [Small ∩ NotSmall , EmptySpace ]
output = True
• Cartesian Product Of Two Fuzzy Sets
■ Cartesian Product of two Crisp Sets
Let A and B be two crisp sets in the universe of discourse X and Y..
The Cartesian product of A and B is denoted by A x B
Defined as A x B = { (a , b) │ a ∈ A , b ∈ B }
Note : Generally AxB ≠BxA
Example : Graphic representation of A x B
B
Let A = {a, b, c} and B = {1, 2}
2
then A x B = { (a , 1) , (a , 2) ,
(b , 1) , (b , 2) , 1
(c , 1) , (c , 2) } A
a b c
− Fuzzy relations offer the capability to capture the uncertainty and vagueness
In this section, first the fuzzy relation is defined and then expressing fuzzy
relations in terms of matrices and graphical visualizations. Later the
properties of fuzzy relations and operations that can be performed with fuzzy
relations are illustrated.
3.1 Definition of Fuzzy Relation
y y1 Y2 Y3
x
x1 0 0.1 0.2
R
X2 0.7 0.2 0.3
X3 1 0.6 0.2
µ
1 Note : Since the values of the
.8
.6
membership function 0.7, 1, 0.6
.4 are in the direction of x below the
.2
1 2 3 y major diagonal (0, 0.2, 0.2) in the
0
matrix are grater than those
1
0.1, 0.2, 0.3 in the direction of y,
2
we therefore say that the relation
3
x R describes x is grater than y.
− The first item is a list containing element and membership grade pairs,
{{v1, w1}, R11}, {{ v1, w2}, R12}, ... , {{ vn, wm}, Rnm}}.
where { v1, w1}, { v1, w2}, ... , { vn, wm} are the elements of the relation
are defined as ordered pairs, and { R11 , R12 , ... , Rnm} are the membership
grades of the elements of the relation that range from 0 to 1, inclusive.
− The second item is the universal space; for relations, the universal space
where the first pair defines the universal space for the first set and the second
pair defines the universal space for the second set.
Example showing how fuzzy relations are represented
Let V = {1, 2, 3} and W = {1, 2, 3, 4}.
A fuzzy relation R is, a function defined in the space V x W, which takes
values from the interval [0, 1] , expressed as R : V x W → [0, 1]
R = FuzzyRelation [{{{1, 1}, 1}, {{1, 2}, 0.2}, {{1, 3}, 0.7}, {{1, 4}, 0},
{{2, 1}, 0.7}, {{2, 2}, 1}, {{2, 3}, 0.4}, {{2, 4}, 0.8},
{{3, 1}, 0}, {{3, 2}, 0.6}, {{3, 3}, 0.3}, {{3, 4}, 0.5},
UniversalSpace → {{1, 3, 1}, {1, 4, 1}}]
This relation can be represented in the following two forms shown below
Membership matrix form 1 µ Graph form
.8
w w1 w2 w3 w4 .6
v .4
v1 1 0.2 0.7 0 .2
R
v2 0.7 1 0.4 0.8 0 1 2 3 4w
2
3
v
Vertical lines represent membership grades
Elements of fuzzy relation are ordered pairs {vi , wj}, where vi is first and
wj is second element. The membership grades of the elements are
represented by the heights of the vertical lines.
Projections of Fuzzy Relations
R
(1)
= {(x) , µ R(1) (x , y))}
= {(x) , max µ R (x , y)) | (x , y) ∈AxB}
Y
R
(2)
= {(y) , µ R(2) (x , y))}
= {(y) , max µ R (x , y)) | (x , y) ∈ AxB}
X
{µ R (x , y) | (x , y) ∈AxB}
(T) max max
R =
X Y
(2)
R 0.3 0.6 1 0.9 0.6 1 = R(T)
Note :
(1)
For R select max means max with respect to y while x is considered fixed
Y
For R(2) select max means max with respect to x while y is considered fixed
x
R(1) R(2)
1 1
.8 .8
.6 .6
.4 .4
.2 .2
0 x y
0
1 2 3 4 5 1 2 3 4 5
(1) (2)
Fig Fuzzy plot of 1st projection R Fig Fuzzy plot of 2nd projection R
Max-Min and Min-Max Composition
• Max-Min Composition
function µ R1 ο R2 defined as
R1 ο R2 = { ((x , z) , max(min (µR1 (x , y) , µR2 (y , z))))} ,
Y
(x , z) ∈AxC, y ∈B
y y1 y2 y3 z z1 z2 z3
x y
R1 x1 0.1 0.3 0 y1 0.8 0.2 0
R2
x2 0.8 1 0.3 y2 0.2 1 0.6
y3 0.5 0 0.4
Note : Number of columns in the first table and second table are equal.
Compute max-min composition denoted by R1 ο R2 :
Step -1 Compute min operation (definition in previous slide).
Consider row x1 and column z1 , means the pair (x1 , z1) for all yj ,
j = 1, 2, 3, and perform min operation
min (µR1 (x1 , y1) , µR2 (y1 , z1)) = min (0.1, 0.8) = 0.1,
min (µR1 (x1 , y2) , µR2 (y2 , z1)) = min (0.3, 0.2) = 0.2,
For x = x1 , z = z1 , y = yj , j = 1, 2, 3,
Calculate the grade membership of the pair (x1 , z1) as
{ (x1 , z1) , max ( (min (0.1, 0.8), min (0.3, 0.2), min (0, 0.5) )
x2 0.8 1 0.3
y y1 y2 y3 z z1 z2 z3
x y
R1 x1 0.1 0.3 0 y1 0.8 0.2 0
R2
x2 0.8 1 0.3 y2 0.2 1 0.6
y3 0.5 0 0.4
z z1 z2 z3
x
R1 R2 = x1 0.3 0 0.1
R1 ο R2 = R1 R2
Fuzzy Systems
• Expert Systems design have become easy because their domains are
inherently fuzzy and can now be handled better;
examples : Decision-support systems, Financial planners, Diagnostic
system, and Meteorological system.
Introduction
Any system that uses Fuzzy mathematics may be viewed as Fuzzy system.
The Fuzzy Set Theory - membership function, operations, properties and the
relations have been described in previous lectures. These are the
prerequisites for understanding Fuzzy Systems. The applications of Fuzzy set
theory is Fuzzy logic which is covered in this section.
Here the emphasis is on the design of fuzzy system and fuzzy controller in a
closed–loop. The specific topics of interest are :
− Fuzzification of input information,
− Fuzzy Inferencing using Fuzzy sets ,
Fuzzy
Rule Base
Input output
variables variables
X1 Fuzzy Y1
X2 Y2
Fuzzification Inferencing Defuzzification
Xn Ym
Membeship Function
T
− Input Vector : X = [x1 , x2, . . . xn ] are crisp values, which are
transformed into fuzzy sets in the fuzzification block.
T
− Output Vector : Y = [y1 , y2, . . . ym ] comes out from the
defuzzification block, which transforms an output fuzzy set back to
a crisp value.
− Fuzzification : a process of transforming crisp values into grades of
with the rule base and conducts the Fuzzy reasoning process.
− Defuzzyfication: Translate results back to the real world values.
Fuzzy Logic
A simple form of logic, called a two-valued logic is the study of "truth tables"
and logic circuits. Here the possible values are true as 1, and false as 0.
This simple two-valued logic is generalized and called fuzzy logic which treats
"truth" as a continuous quantity ranging from 0 to 1.
Definition : Fuzzy logic (FL) is derived from fuzzy set theory dealing with
reasoning that is approximate rather than precisely deduced from classical
two-valued logic.
Logic is used to represent simple facts. Logic defines the ways of putting
symbols together to form sentences that represent facts. Sentences are
either true or false but not both are called propositions.
Examples :
Sentence Truth value Is it a Proposition ?
"Grass is green" "true" Yes
"2 + 5 = 5" "false" Yes
"Close the door" - No
"Is it hot out side ?" - No
"x > 2" - No (since x is not defined)
"x = x" - No
(don't know what is "x" and "="
mean; "3 = 3" or say "air is equal
to air" or "Water is equal to water"
has no meaning)
Examples: (a) The sky is blue., (b) Snow is cold. , (c) 12 * 12=144
■ Truth Value
A proof of these tautologies, using the truth tables are given below.
Tautologies (p→q) ↔ ¬ [p ∧ (¬q)] and (p→q) ↔ (¬p) ∨ q
Table 1: Proof of Tautologies
p q p→q ¬q p ∧ (¬q) ¬ [p ∧ (¬q)] ¬p (¬p) ∨ q
T T T F F T F T
T F F T T F F F
F T T F F T T T
F F T T F T T T
Note :
1. The entries of two columns p→q and ¬ [p ∧ (¬q)] are identical,
proves the tautology. Similarly, the entries of two columns p→q and
(¬p) ∨ q are identical, proves the other tautology.
2. The importance of these tautologies is that they express the
membership function for p→q in terms of membership functions of
either propositions p and ¬q or ¬p and q.
■ Equivalences
Using these facts and the equivalence between logic and set theory, we
can obtain membership functions for µp→ q (x , y) .
From 1st fact : µp→q (x , y) = 1 - µ p ∩ q (x , y)
= 1 – min [µ p(x) , 1 - µ q (y)] Eq (1)
Note :
1. Entries in last two columns of this table-2 agrees with the entries in
table-1 for p→q , the proof of tautologies, read T as 1 and F as 0.
2. The implication membership functions of Eq.1 and Eq.2 are not
the only ones that give agreement with p→q. The others are :
µp→q (x , y) = 1 - µ p (x) (1 - µ q (y)) Eq (3)
Like the extension of crisp set theory to fuzzy set theory, the extension of
crisp logic is made by replacing the bivalent membership functions of the
crisp logic with the fuzzy membership functions.
In crisp logic, the truth value acquired by the proposition are 2-valued,
namely true as 1 and false as 0.
In fuzzy logic, the truth values are multi-valued, as absolute true, partially
true, absolute false etc represented numerically as real value between
0 to 1.
Note : The fuzzy variables in fuzzy sets, fuzzy propositions, fuzzy relations
~
etc are represented usually using symbol ~ as P but for the purpose of
easy to write it is always represented as P .
• Recaps
01 Membership function µ A (x) describes the membership of the elements x of
the base set X in the fuzzy set A .
02 Fuzzy Intersection operator ∩ ( AND connective ) applied to two fuzzy sets A
and B with the membership functions µ A (x) and µ B (x) based on min/max
operations is µ A ∩ B = min [ µ A (x) , µ B (x) ] , x ∈ X (Eq. 01)
03 Fuzzy Intersection operator ∩ ( AND connective ) applied to two fuzzy sets A
and B with the membership functions µ A (x) and µ B (x) based on algebraic
product is µA ∩ B = µ A (x) µ B (x) , x ∈ X (Eq. 02)
04 Fuzzy Union operator U ( OR connective ) applied to two fuzzy sets A and B
with the membership functions µ A (x) and µ B (x) based on min/max
operations is µ A U B = max [ µ A (x) , µ B (x) ] , x ∈ X (Eq. 03)
with the membership functions µ A (x) and µ B (x) based on algebraic sum is
µA UB = µ A (x) + µ B (x) - µ A (x) µ B (x) , x ∈ X (Eq. 04)
06 Fuzzy Compliment operator ( ―
) ( NOT operation ) applied to fuzzy set A
with the membership function µ A (x) is µ A= 1 - µ A (x) , x ∈ X (Eq. 05)
07 Fuzzy relations combining two fuzzy sets by connective "min operation" is an
• Fuzzy Connectives
Here P , Q are fuzzy proposition and T(P) , T(Q) are their truth values.
− the P and Q are related by the ⇒ operator are known as antecedents
IF x is A THEN y is B, is equivalent to
R = (A x B) U (¬ A x Y)
the membership function of R is given by
µR (x , y) = max [min (µA (x) , µB (y)) , 1 − µA (x)]
− For the compound implication statement like
Let X = {a, b, c, d} ,
A = {(a, 0) (b, 0.8) (c, 0.6) (d, 1)}
B = {(1, 0.2) (2, 1) (3, 0.8) (4, 0)}
C = {(1, 0) (2, 0.4) (3, 1) (4, 0.8)}
Y = { 1, 2, 3, 4} the universe of discourse could be viewed as
{ (1, 1) (2, 1) (3, 1) (4, 1) }
i.e., a fuzzy set all of whose elements x have µ(x) = 1
B 1 2 3 4 y 1 2 3 4
A A
a 0 0 0 0 a 1 1 1 1
b 0.2 0.8 0.8 0 ¬A x Y = b 0.2 0.2 0.2 0.2
AxB =
c 0.2 0.6 0.6 0 c 0.4 0.4 0.4 0.4
d 0.2 1 0.8 0 d 0 0 0 0
y 1 2 3 4
x
a 1 1 1 1
b 0.2 0.8 0.8 0
R =
c 0.4 0.6 0.6 0.4
d 0.2 1 0.8 0
AxB =
b 0.2 0.8 0.8 0 ¬A x C = b 0.2 0.2 0.2 0.2
c 0.2 0.6 0.6 0 c 0.4 0.4 0.4 0.4
d 0.2 1 0.8 0 d 0 0 0 0
y 1 2 3 4
x
a 1 1 1 1
b 0.2 0.8 0.8 0
R =
c 0.4 0.6 0.6 0.4
d 0.2 1 0.8 0
• Fuzzy Quantifiers
In crisp logic, the predicates are quantified by quantifiers.
Similarly, in fuzzy logic the propositions are quantified by quantifiers.
There are two classes of fuzzy quantifiers :
− Absolute quantifiers and
− Relative quantifiers
Examples :
0
20 40 60 80 100 120 140
Speed X0 = 70km/h
.6 to fuzzy medium.
.4
.2
0
10 20 30 40 50 60 70 80 90 00
Speed X0 = 40km/h
Note : Every fuzzy linguistic statements above the line is analytically known
and what is below the line is analytically unknown.
Note : Every fuzzy linguistic statements above the line is analytically known
and what is below the line is analytically unknown.
Example :
Apply the fuzzy Modus Ponens rules to deduce Rotation is quite slow?
Given :
(i) If the temperature is high then then the rotation is slow.
(ii) The temperature is very high.
Let H (High) , VH (Very High) , S (Slow) and QS (Quite Slow) indicate the
associated fuzzy sets.
Let the set for temperatures be X = {30, 40, 50, 60, 70, 80, 90, 100} , and
Let the set of rotations per minute be Y = {10, 20, 30, 40, 50, 60} and
H = {(70, 1) (80, 1) (90, 0.3)}
VH = {(90, 0.9) (100, 1)}
QS = {10, 1) (20, 08) }
S = {(30, 0.8) (40, 1) (50, 0.6)
30 0 0 0 0 0 0 30 1 1 1 1 1 1
40 0 0 0 0 0 0 40 1 1 1 1 1 1
50 0 0 0 0 0 0 50 1 1 1 1 1 1
60 0 0 0 0 0 0 60 1 1 1 1 1 1
HxS= 70 0 0 0.8 1 0.6 0 H x Y = 70 0 0 0 0 0 0
80 0 0 0.8 1 0.6 0 80 0 0 0 0 0 0
90 0 0 0.3 0.3 0.3 0 90 0.7 0.7 0.7 0.7 0.7 0.7
100 0 0 0 0 0 0 100 1 1 1 1 1 1
10 20 30 40 50 60
30 1 1 1 1 1 1
40 1 1 1 1 1 1
50 1 1 1 1 1 1
60 1 1 1 1 1 1
R(x,Y) = 70 0 0 0.8 1 0.6 0
80 0 0 0.8 1 0.6 0
90 0.7 0.7 0.7 0.7 0.7 0.7
100 1 1 1 1 1 1
QS = VH ο R (x, y)
10 20 30 40 50 60
30 1 1 1 1 1 1
40 1 1 1 1 1 1
50 1 1 1 1 1 1
60 1 1 1 1 1 1
= [0 0 0 0 0 0 0.9 1] x
70 0 0 0 0 0 0
80 0 0 0 0 0 0
90 0.7 0.7 0.7 0.7 0.7 0.7
100 1 1 1 1 1 1
= [1 1 1 1 1 1 ]
Fuzzy Rule Based System
− Center of sums,
− Mean of maxima.
Centroid method
It is also known as the "center of gravity" of area method.
It obtains the centre of area (x*) occupied by the fuzzy set .
For discrete membership function, it is given by
n
Σ xi µ (xi)
i=1
x* = where
n
Σ µ (xi)
i=1