next up previous contents
Next: Example sequence about fuzzy Up: Fuzzy sets Previous: Creating fuzzy sets

Setting the membership functions of the fuzzy sets

   

tabular1425

The commands are purposed to set or to get the shapes of the membership functions. The membership functions are specified through the names of the sets, the indexes of the corner points and values of these corners in the x-axis. The indexes for each type of the fuzzy membership functions are proposed below in the figure. If the parameter -lock has been given for these commands then the sets are handled as if they were locked to each other. Also the command getfzpnt finds the nearest point only among suitable points.

figure1436

Example: This example demonstrates commands which are needed to create a drag-and-drop to an interface for updating the access points of the membership functions.

NDA> load boston.dat
NDA> mkfz fz1 -f boston.dis
NDA> addfzs fz1 -fs nearFromCity -t 8
NDA> addfzs fz1 -fs farFromCity -t 8
NDA> initfz fz1
# finding the nearest point of the membership function for point 8
NDA> getfzpnt fz1 -v 8
8.460867          # the exact value of the point
nearFromCity      # set name
4                 # index
# create here a drag-and-drop graph and when the drop event
# is captured then perform the following command:
NDA> setfzs fz1 -fs nearFromCity -v 4=7.5;
...



Erkki Hakkinen
Thu Sep 24 11:51:34 EET DST 1998