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 />

The genfis2 function builds upon the subclust function to provide a<br />

fast, one-pass method to take input-output training data and generate a<br />

Sugeno-type fuzzy inference system that models the data behavior.<br />

An Example: Suburban Commuting<br />

In this example, you apply the genfis2 function to model the relationship<br />

between the number of automobile trips generated from an area and the area’s<br />

demographics. Demographic and trip data are from 100 traffic analysis zones<br />

in New Castle County, Delaware. Five demographic factors are considered:<br />

population, number of dwelling units, vehicle ownership, median household<br />

income, and total employment. Hence, the model has five input variables and<br />

one output variable.<br />

Load and plot the data by typing the following commands:<br />

clear<br />

close all<br />

mytripdata<br />

subplot(2,1,1), plot(datin)<br />

subplot(2,1,2), plot(datout)<br />

The next figure displays the input and the output data.<br />

2-148

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

Saved successfully!

Ooh no, something went wrong!