Professional Documents
Culture Documents
Fuzzy Operations
Fuzzy Union
Fuzzy Intersection
Fuzzy Complement
IMAT3406 Fuzzy Logic and Knowledge-based Systems
Weeks 3 and 4
Some info for LAB
Use
help <
help <
function
function
>
> (e.g., help newfis) if
you dont know how to use the function. It
gives you information about how to use the
function and what parameters it requires
Fuzzy Membership Functions
'
c x if
c x b if
b c
x c
b x a if
a b
a x
a x if
x
A
0
0
) (
a
b
c
x
A
(x)
1
0
c: centre
s: width
A
(x)
1
1
]
1
m
A
s
c x
m s c x
2
1
exp ) , , , (
0 1 2 3 4 5 6 7 8 9 10
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
x
c=5
s=2
m=2
c=5
s=0.5
m=2
0 1 2 3 4 5 6 7 8 9 10
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0 1 2 3 4 5 6 7 8 9 10
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
c=5
s=5
m=2
c=5
s=2
m=0.2
c=5
s=5
m=5
0 1 2 3 4 5 6 7 8 9 10
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0 1 2 3 4 5 6 7 8 9 10
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Fuzzy Operations
(Fuzzy Union, Intersection, and
Complement)
These two operators will become important later as they are the
building blocks for us to be able to compute with fuzzy if-then rules
Logical AND ()
Logical OR (U)
Truth Table
A B A B
0 0 0
0 1 0
1 0 0
1 1 1
Truth Table
A B A U U B
0 0 0
0 1 1
1 0 1
1 1 1
Crisp Union
Crisp Intersection
A
A
B
B
Classic/Crisp/Boolean Logic
Fuzzy Union
Its features
Fuzzy Complement
'
<
+
1 5 . 0
) 5 . 0 ( 1
1
5 . 0 0 0
) (
2
x if
x
x if
x
A
1 0
) 707 . 0 ( 1
1
) (
4
+
x
x
x
B
Example 3: (cont.)
Figure (a):
A
(x),
B
(x) Figure (b):
AUB
(x)
Figure (c):
AB
(x) Figure (d):
B
(x),
B
(x)
Example 3: (cont.)