

The linguistic variable name and should be unique, because we're using a hash map for storing CLinguisticVariable, so we can find specific linguistic variables in time O(1). CLinguisticVariableĬLinguisticVariable is the class used for representing the linguistic variables. At first I will try to describe some simple classes which we will later use in more complicated and important classes in the FuzzyLogic API. I have tried to make a clean and simple implementation that would beĮasy to understand for everyone. In this section, I will describe my FuzzyLogic API implementation.

I believe this implementation is simple, effective, and quite fast.ĭo you know what Fuzzy Logic is? Here I won't talk about Fuzzy Logic theory too much, because there are many existing cool articles about Fuzzy Logic (see links below). In this article, I will introduce you to my Fuzzy Logic implementation, called FuzzyLogic API.
