P. 1
Fuzzy Logic

Fuzzy Logic

|Views: 132|Likes:

Categories:Types, Research

Availability:

See more
See less

10/24/2012

pdf

text

original

GeneralAggregator@fun, A1, A2, ... , AnD

return combined membership grades of fuzzy
sets or relationsA1, A2, ... , An using functionfun

General aggregation operation.

GeneralAggregator[fun, A1, A2, ... , An] uses the function fun to combine the membership grades of
A1, A2, ... , An, where the A's are either fuzzy sets or fuzzy relations. This is the most general aggregate
operation and virtually every other aggregation operation can be expressed in its terms. Here we demon-
strate this function by first creating a function for combining the membership grades of the elements and
then callingGeneralAggregator with this function and our two fuzzy sets.

In[32]:= MyAgg@x_, y_D := 1

####

2 Max@x, yD

In[33]:= GA = GeneralAggregator@MyAgg, FS1, FS2D

Out[33]= FuzzySetA980, 0.00506711<, 91, 1

""""

4 =, 92, 1

""""

2 =, 93, 1

""""

2 =, 94, 1

""""

2 =, 95, 1

""""

2 =, 96, 1

""""

2 =,

97, 1

""""

2 =, 98, 1

""""

2 =, 99, 9

"""""""

20 =, 910, 2

""""

5 =, 811, 0.360711<, 812, 0.416104<,
813, 0.460805<, 814, 0.489899<, 815, 0.5<, 816, 0.489899<, 817, 0.460805<,
818, 0.416104<, 819, 0.360711<, 820, 0.300187<, 821, 0.239826<, 822, 0.18394<,
823, 0.135434<, 824, 0.0957314<, 825, 0.0649613<, 826, 0.0423183<,
827, 0.0264653<, 828, 0.015889<, 829, 0.00915782<, 830, 0.00506711<,
831, 0.00269155<, 832, 0.00137252<=, UniversalSpace → 80, 32, 1

To see how our new aggregator behaves, we look at a plot of the results from the previous calculation.

Chapter
Chapter
Chapter

Chapter 4:
4:
4:

4: Aggregation Operations

57

In[34]:= FuzzyPlot@FS1, FS2, GA, PlotJoined → TrueD;

0 5 10 15 20 25 30

U

0.2

0.4

0.6

0.8

1

You can use a built-in function SetOptions to restore the default setting for the FuzzySet object.

In[35]:= SetOptions@FuzzySet, UniversalSpace→ 80, 20, 1

Out[35]= 8UniversalSpace → 80, 20, 1<<

58

Fuzzy Logic

5 Fuzzy Set Visualization

scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->