31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Tutorial<br />

A fuzzy set is an extension of a classical set. If X is the universe of discourse<br />

and its elements are denoted by x, then a fuzzy set A in X is defined as a<br />

set of ordered pairs.<br />

A={x, µ A<br />

(x) | x X}<br />

µ A<br />

(x) is called the membership function (or MF) of x in A. The membership<br />

function maps each element of X to a membership value between 0 and 1.<br />

The toolbox includes 11 built-in membership function types. These 11<br />

functions are, in turn, built from several basic functions:<br />

• piece-wise linear functions<br />

• the Gaussian distribution function<br />

• the sigmoid curve<br />

• quadratic and cubic polynomial curves<br />

For detailed information on any of the membership functions mentioned<br />

next, turn to Chapter 4, “Functions — Alphabetical List”. By convention, all<br />

membership functions have the letters mf at the end of their names.<br />

The simplest membership functions are formed using straight lines. Of these,<br />

the simplest is the triangular membership function, and it has the function<br />

name trimf. This function is nothing more than a collection of three points<br />

forming a triangle. The trapezoidal membership function, trapmf, hasa<br />

flat top and really is just a truncated triangle curve. These straight line<br />

membership functions have the advantage of simplicity.<br />

1<br />

0.75<br />

0.5<br />

0.25<br />

0<br />

0 2 4 6 8 10<br />

trimf, P = [3 6 8]<br />

trimf<br />

1<br />

0.75<br />

0.5<br />

0.25<br />

0<br />

0 2 4 6 8 10<br />

trapmf, P = [1 5 7 8]<br />

trapmf<br />

2-10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!