Code for the Fuzzifier
Let’s develop C++ code to create a simple fuzzifier. A class called category is defined in Listing 3.1. This
class encapsulates the data that we need to define, the categories in Figure 3.2. There are three private data
members called lowval, midval, and highval. These represent the values on the graph that define the category
triangle. In the tight category, the lowval is 5.0, the midval is 8.5, and the highval is 12.0. The category class
allows you to instantiate a category object and assign parameters to it to define it. Also, there is a string called
Do'stlaringiz bilan baham: |