Académique Documents
Professionnel Documents
Culture Documents
2
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
7
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Definition
Experts rely on common sense when they solve problems.
Fuzzy logic is not logic that is fuzzy, but logic that is used to
describe fuzziness. Fuzzy logic is the theory of fuzzy sets,
sets that calibrate vagueness.
More Definitions
Fuzzy logic is a set of mathematical principles for knowledge
representation based on degrees of membership.
9
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Fuzzy Sets
The concept of a set is fundamental to
mathematics.
Fuzzy Sets
Degree of Membership
Name Height, cm
Crisp Fuzzy
Chris 208 1 1.00
Mark 205 1 1.00
John 198 1 0.98
Tom 181 1 0.82
David 179 0 0.78
Mike 172 0 0.24
Bob 167 0 0.15
Steven 158 0 0.06
Bill 155 0 0.01
Peter 152 0 0.00
11
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
0.8
The y-axis represents the
0.6
membership value of the
0.4
fuzzy set. In our case, the
fuzzy set of “tall men” maps 0.2
0.0
height values into 150 160 170 180 190 200 210
corresponding membership Height, cm
value
12
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
1, if x A
fA(x) : X {0, 1}, where f A ( x)
0, if x A
14
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Fuzzy Sets
Sets with fuzzy boundaries
15
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
.8
.5 “tall” in the US
“tall” in NBA
.1
5’10’’ Heights
16
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Fuzzy Sets
Formal definition:
A fuzzy set A in X is expressed as a set of ordered
pairs:
A {( x , A ( x ))| x X }
Membership Universe or
Fuzzy set
function universe of discourse
(MF)
17
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
18
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
1
B(x)
x 50
2
1
10
19
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Alternative Notation
A fuzzy set A can be alternatively denoted as
follows:
X is discrete
A
xi X
A ( xi ) / xi
X is continuous A A( x) / x
X
20
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
0.4
0.2 Tall
0.0
150 160 170 180 190 200 210
21
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Fuzzy Partition
Fuzzy partitions formed by the linguistic values
“young”, “middle aged”, and “old”:
lingmf.m
22
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
More Definitions
Support Convexity
Core Fuzzy numbers
Normality Bandwidth
Crossover points Symmetricity
Open left or right, closed
Fuzzy singleton
a-cut, strong a-cut
23
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
MF Terminology
MF
.5
a
0
Core X
Crossover points
a - cut
Support
24
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
convexmf.m
25
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Set-Theoretic Operations
Subset:
A B A B
Complement:
A X A A ( x ) 1 A ( x )
Union:
C A B c ( x ) max( A ( x ), B ( x )) A ( x ) B ( x )
Intersection:
C A B c ( x ) min( A ( x ), B ( x )) A ( x ) B ( x )
26
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Set-Theoretic Operations
subset.m
27 fuzsetop.m
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
MF Formulation
x a c x
Triangular MF: trimf ( x ; a, b , c ) max min , , 0
b a c b
x a d x
Trapezoidal MF: trapmf ( x ; a, b , c , d ) max min , 1, , 0
b a d c
2
1 x c
2
Gaussian MF: gaussmf ( x ; a, b , c ) e
1
Generalized bell MF: gbellmf ( x ; a, b , c ) 2b
x c
1
b
28
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
MF Formulation
disp_mf.m
29
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
MF Formulation
1
Sigmoidal MF: sigmf ( x ; a, b , c )
1 e a( x c )
Extensions:
Abs. difference
of two sig. MF
Product
of two sig. MF
disp_sig.m
30
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
MF Formulation
c x
L-R MF: F L a , x c
L R ( x ; c ,a , )
F x c , x c
R
Example: FL ( x ) max( 0, 1 x 2 )
3
F R ( x ) exp( x )
c=65 c=25
a=60 a=10
b=10 b=40
31
difflr.m
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Cylindrical Extension
cyl_ext.m
32
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
2D MF Projection
Two-dimensional Projection Projection
MF onto X onto Y
R ( x, y ) A( x) B( y)
project.m max R ( x , y ) max R ( x, y )
y x
33
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
2D MFs
2dmf.m
34
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Fuzzy Complement
General requirements:
• Boundary: N(0)=1 and N(1) = 0
• Monotonicity: N(a) > N(b) if a < b
• Involution: N(N(a) )= a
Two types of fuzzy complements:
• Sugeno’s complement:
1 a
N s (a )
1 sa
• Yager’s complement:
N w ( a ) (1 a w )1/ w
35
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Fuzzy Complement
Sugeno’s complement: Yager’s complement:
1 a
N s (a ) N w ( a ) (1 a w )1/ w
1 sa
36 negation.m
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
37
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
T-norm Operator
Algebraic Bounded Drastic
Minimum: product: product: product:
Tm(a, b) Ta(a, b) Tb(a, b) Td(a, b)
38
tnorm.m
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
39
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
T-conorm or S-norm
Algebraic Bounded Drastic
Maximum: sum: sum: sum:
Sm(a, b) Sa(a, b) Sb(a, b) Sd(a, b)
40
tconorm.m
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
Tm(a, b) Sm(a, b)
Ta(a, b) Sa(a, b)
Tb(a, b) Sb(a, b)
Td(a, b) Sd(a, b)
41
Neuro-Fuzzy and Soft Computing: Fuzzy Sets
42