Re: How is the degree of membership calculated?

CRPFALKSD (crpfalksd@aol.com)
Wed, 29 Apr 1998 09:34:58 +0200 (MET DST)

>> Cool Just Right Warm
>> 1 | /\ /\ /\
>> | / \ O \ / \
>> | / \ / \ / \
>> | / X X \
>> | / / \ / \ \
>> | / / O / \ \
>> 0 |/______/_____\/_____\______\_____
>> 45 60 65 70 85
>>
>
>Each MF, as represented above, is a piecewise linear function of one
>variable so, for example,
>Just_Right(X) =
> 0 for x < 60
> (x-60)/5 for 60 <= x < 65
> 1-(x-65)/5 for 65 <= x <= 70
> 0 for x > 70.
>Normally one then takes the maximum value over all of the memberships
>for the linguistic set and assigns that to the result. Hence, in the
>above example one would assert that the temperature is Just Right.

So for a temperature with a degree of membership Warm, the figures would read:
0 for x < 65
(x-65)/5 for 65 <= x < 70
1-(x-70)/5 for 70 <= x <= 85
0 for x > 85

And if the temperature was 80, then we use the third formula like such:
1-(80-70)/5 since 70 <= 80 <=85 the result=?? (I get -1.0 ??)

And if the temperature was 68, then we use the second formula:
(68-65)/5 since 65 <= 68 < 70 the result=0.60

Is this somewhat correct?

Thanks for you help.