Specify the shape of the membership functionsįor our input variables - angle could be described as.Decide on what the fuzzy rules are going to be (can be described linguistically).Specify the fuzzy sets to be associated with each variable.Now for the actual parameters of the fuzzy system in 3 simple steps: Adjustment Angle of the heading of the car to avoid possible collisions with obstacles.Distance to between the obstance and my car.Angle of the obstacle relative to the direction my car is travelling in.So lets go about designing a fuzzy system for obstacle avoidance of the car in my assignment.įirst we need to define the input and output variables of the fuzzy system. So in Fuzzy terms the person would classified within a range of as small to a degree of 0.4, and average to a degree of 0.6. So a Fuzzy Logic recognizes not only clear-cut, black-and-white alternatives but also the infinite gradations in between. The input value 165 is a member of both the short and average domain. But the fuzzy logic would output that the person is partly short and partly average.
The fuzzy logic system works by applying certain rules to the input values to find out the degree that the particular input matches a set of values defined by a rule.īy looking at the input fuzzy sets above, a person who is 165cm according to the boolean representation, the person would by short. Inputs to a fuzzy system could say the temperature in a room or the color of a particular pixel on screen. So lets go about creating a fuzzy logic system for an obstacle avoidance system. So fuzzy logic is just logic that takes imprecise inputs and ouptus a precise output - a precise problem solving methodology. Fuzzy logic is an attempt to combine the two techniques." - Paul Wang, Professor of Electrical Engineering Computers can only manipulate precise valuations.
The human brain can reason with uncertainties, vagueness, and judgments. In traditional logic an object takes on a value of either zero or one in fuzzy logic, a statement can assume any real value between 0 and 1, representing the degree to which an element belongs to a given set. It excels in producing exact results from imprecise data, and is especially useful in computers and electronic applications.įuzzy logic differs from classical logic in that statements are no longer black or white, true or false, on or off. "Fuzzy logic is a mathematical approach to problem solving. Like my first article this one was also one of my assignments for AI at university and I thought I'd try this one out in WPF using C# as well.įuzzy logic - a dictionary like description: