
Let’s build on our example and add some member sets to DistToTarget.
FuzzyModule fm;
FuzzyVariable& DistToTarget = fm.CreateFLV("DistToTarget");
FzSet Target_Close = DistToTarget.AddLeftShoulderSet("Target_Close",
0,
25,
150);
FzSet Target_Medium = DistToTarget.AddTriangularSet("Target_Medium",
25,
50,
300);
FzSet Target_Far = DistToTarget.AddRightShoulderSet("Target_Far",
150,
300,
500);
These few lines of code create the FLV shown in Figure 10.26.
Notice how an instance of a
FzSet is returned by each of the set addition
methods. This is a proxy class that mimics the functionality of a concrete
FuzzySet. The concrete instances themselves are contained within ...