The example (ex4.11) demonstrates how a fuzzy structure and sets can be managed with a few commands. The fuzzy tool only includes the commands needed to modify fuzzy set structures. Therefore, you must also use operations modifying graphic structures, if you would like to support working with fuzzy sets using a graphical interface. 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 appartments near the city NDA> addfzs fz1 -fs nearToCity -t 8 NDA> initfz fz1 -fs nearToCity -lock NDA> func1 fz1.grp -inx 0 -f fz1.sets.nearToCity -co blue NDA> updgr fz1.grp func1 # Add a fuzzy set for appartments 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