Академический Документы
Профессиональный Документы
Культура Документы
1; x ≤ 25
40 − x
µYoung ( x) = ;25 < x ≤ 40
15
0; elsewhere
If x is 22 the degree of belongingness of x to the set Young is 1. If x is 30 the
degree of its belongingness to Young is 0.666
Fuzzy Vs Probability
Notations:
Discrete fuzzy set notation: A discrete fuzzy set A is denoted as the following
µ A (x1 ) µ A (x 2 ) µ A (x n )
A= + +K+
x1 x2 xn
Discrete representation
a b c
Unconstrained matrix relation
1 1 1 1 between sets X and Y is also
2 1 1 1
called the cartesian product of
two sets defined by:
3 1 1 1
X × Y = {( x, y ) / x ∈ X , y ∈ Y }
1, ( x, y ) ∈ R
χ R ( x, y ) =
0, ( x, y )∉ R
Composition Between Sets
Max-Min Composition:
χ T ( x, z ) = ∨ ( χ R ( x, y ) ∧ χ S ( y, z ))
y∈Y
Max-Product Composition:
χ T ( x, z ) = ∨ ( χ R ( x, y ) • χ S ( y, z ))
y∈Y
Composition Between Sets
y1 y2 y3 y4
y1 0
z1 z2
x1 1 0 1 0 1
R = x2 0 0 0 1 y2 0 0
S=
x3 0 0 0 0 y3 0 1
y4 0
0
Max-Min Composition:
χ T ( x, z ) = ∨ ( χ R ( x, y ) ∧ χ S ( y, z ))
y∈Y
∨ (0,0,0,0) ∨ (1,0,0,0) 0 1
∨ (0,0,0,0) ∨ (0,0,0,0) T = 0 0
∨ (0,0,0,0) ∨ (0,0,0,0) 0 0
Propositional Calculus
Predicate Logic:
In classical predicate logic, a simple proposition P is a linguistic statement contained in
the universe of propositions which can be classified as being strictly TRUE or FALSE.
T(P) = 1 or 0, where T(P) represents the truth value or the veracity of P
Two propositions P, Q made over the same universal set or universe of discourse can be
related by logical connectives such as disjunction (∨), conjunction (∧), negation (−),
implication (→), equality (↔)or (≡).
Propositions take the form:
P: x is in A (apple is a fruit)
Q: x is in B (red is a color)
Propositional Calculus
Implication (P → Q):
P: x is in A
Q: y is in B
Implication (P → Q): If x in A, then y in B or in short: if P then Q.
Set theoretic notation of (P → Q) is given by : AU B
In other words either y is in B or x is not in A
Methodology:
• Find the relation matrix R = A U B = ( A I B) U (A IU )
max(min ( χ A ( x), χ B ( y ) ), min (1 − χ A ( x),1))
• Now find the composition A1oR
• Then y is in B1 = A1oR
Fuzzy Inferencing
Problem: Driving on road, approached by vehicles towards an intersection. How do
you control your breaks depending on the distance to the point of intersection and
speed of the vehicle.
Control Rules:
1. If the distance to intersection (dti) is far and the speed slow apply gentle breaks
2. If dti is near and the speed slow apply medium breaks
3. If dti is near and speed fast apply medium breaks
4. If dti is near and speed fast apply high breaks
Fuzzy Inferencing
Defining input or antecedent membership functions:
Pressure on breaks
Fuzzy Inferencing
Given that the distance to intersection is 0.3 normalized units and
speed is 0.7 normalized units how much should be the pressure on
the breaks in normalized units?
Approach:
Fuzzify the antecedent variables
Fire the rules (Mamdani’s min-max inferencing)
Obtain the net consequent membership function
Defuzzify to get crisp output
Fuzzy Inferencing
If dti is far and the speed is
slow apply gentle breaks