The example (ex4.11) demonstrates how a fuzzy structure and sets can be managed with the given commands. The fuzzy tool includes only the commands needed to operate with a fuzzy set. In addition, you must use operations from a graphic structure if you would like to support working with fuzzy sets by a graphical presentation. Typically the fuzzy tool should hide these commands and thus only developers need to become familiar with them.
# # example: fuzzy sets # NDA> load boston.dat NDA> mkfz fz1 -f boston.dis # # set a histogram # NDA> rm -ref fz1.ranges NDA> select ranges -f boston.dis NDA> fldstat -d ranges -dout fz1.ranges -min -max NDA> saxis fz1.grp -ax x -inx 0 -sca data -min fz1.ranges.min -max fz1.ranges.max -step 10 NDA> fldhisto -f boston.zn -max 50 -dout hst NDA> hst fz1.grp -inx 0 -d hst.N -co red # # add a fuzzy set for apartments near the city # NDA> addfzs fz1 -fs nearFromCity -t 8 NDA> initfz fz1 -fs nearFromCity -lock NDA> func1 fz1.grp -inx 0 -f fz1.sets.nearFromCity -co blue NDA> updgr fz1.grp func1 # # add a fuzzy set for apartments far from the city # NDA> addfzs fz1 -fs farFromCity -t 8 NDA> initfz fz1 -fs farFromCity -lock NDA> func1 fz1.grp -inx 0 -f fz1.sets.farFromCity -co blue NDA> updgr fz1.grp func1 NDA> setimg fz1.grp -t vec NDA> showfz fz1