fuzzy logic

1. Classical (crisp) sets: 
can be represented by a characteristic function(can only be zero or one):

for example:

In this situation, A is x>=4, so for the x like 0,1,2,3 is not belong to the set A, so the 
2.Fuzzy sets:

can be represented by a membership function(can be [0, 1]):

Ps: (x-60/12) should be (x-60)/12
it would looks like:

3.Fuzzy sets or classical sets can be either discrete or continuous:

example: when x = x1, then  =  ( is also called the membership )

3.Fuzzy Sets and Probabilities


4. α-cuts
establishes a relationship between crisp sets and fuzzy sets.
For example:


={3,4,5,6} (because when x=3,4,5,6,>=0.2 )
(for the strong alpha cut  should > alpha)

The alpha cut(alpha=0.2) makes the fuzzy set A become a crisp set ,which =1 when x=3,4,5,6, otherwise zero

5. Support
The support of fuzzy set A is ={2,3,4,5,6,7}

6.Normality

The fuzzy sets is normalised when at least one element has height 1(if membership grades are in [0,1]).

 

For the fuzzy set A in (4), A is non-normal, as it doesn’t have one

 

 

 

 

 

 

6. Convexity
For a fuzzy set as below,

for any random r and s, any point between r and s, in this example, all the points in the yellow line, should be >= s (minimun of r and s)


since the yellow point which between the random r and s is smaller than the r (minimum of r and s), this fuzzy set is non-convex 
For the fuzzy set A in (4), A is non-convex. when r is 0.7/3 and s is 0.7/5, the point 0.6/4 between r and s is smaller than r(or s), 0.6 < 0.7


·basic operations:

7.Complement


 (not A)=(1-0)/1 + (1-0.1)/2 + (1-0.7)/3 + ...
Another example:

the fuzzy set ‘not young’ is the fuzzy complement of ‘young’

7. Intersection

=min(0, 0.1)/1 + min(0.1, 0.3)/2 + min(0.7, 0.6)/3 + ...

Another example:

’young’ ∩ ‘middle-aged’ = ‘young and middle-aged’

8. Union
=max(0, 0.1)/1 + max(0.1, 0.3)/2 + max(0.7, 0.6)/3 + ...
Another exmaple:


· parameterised operations:
Complement:

The function c must satisfy the following axioms 
i.
ii. (非严格下降函数)

(a) and (b) are complement function, since they meet the axioms i and ii

what is the difference between parameterised operations and basic operations?
In my opinion, the basic operation just provide a basic function to convert a fuzzy set A to (by minusing by one, but actually, we can have other functions to converts A to  as long as these functions satisfied the axioms above. )

9. Intersection

The intersection function can also be called as t-norms
The function must satisfy the following axioms 

10.Union

The intersection function can also be called as t-conorms
The function must satisfy the following axioms 

 

10. 

12.

 

 

 

13. 

14.

15. Mamdani Inference
Example:


We have three lingustic variables which are age, height, employ. For the age, it has three terms which are young, middle_aged, old. As shown in the left column, for example, the red line is the fuzzy set that used to represent the term young, the horizontal axis means the age of a person, the range of the vertical axis is between zero to one, if the value is one, then it means this person is young, and if the value is 0.5, then it means this person is half young and if the value is zero, then it means this person is not young. Lets take another example, the first picture of the right column. The horizontal axis means the salary a year, the range of the vertical axis is between zero to one, if the value is one, then it means this is a good job, and if the value is 0.5, then it means this is a half good job and if the value is zero, then it means this is not a good job.

Here is the fuzzy set:

 

 

Then, we have three rules:

IF Age is young AND Height is tall THEN he may get a good job

IF Age is middleaged THEN he may get a fair job

IF Age is old OR Height is short THEN he may get a bad job

 

And we give the inputs : age=40, height=1.8, we should output a number(how much salary will this person obtain?) or a term(the job is good, fair, or bad)

 

For the first rule:

we can get the output like this(the picture in the most right column):

For the second relu:

For the third rule:



Then, we combine these three rules:

(output will be like this)

 

Then, we need to do the defuzzification to convert the fuzzy output set to a number or a term

If we want to defuzzy it to a number:

(calculate the Centre of Gravity )

If we want to defuzzy it to a term:

 

Best linguistic match is ‘fair’

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值