31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

genfis1<br />

Purpose<br />

Syntax<br />

Description<br />

Generate <strong>Fuzzy</strong> Inference System structure from data using grid<br />

partition<br />

fismat = genfis1(data)<br />

fismat = genfis1(data,numMFs,inmftype,outmftype)<br />

genfis1 generates a Sugeno-type FIS structure used as initial<br />

conditions (initialization of the membership function parameters) for<br />

anfis training.<br />

genfis1(data) generates a single-output Sugeno-type fuzzy inference<br />

system using a grid partition on the data.<br />

genfis1(data,numMFs,inmftype,outmftype) generates a FIS<br />

structure from a training data set, data, with the number and type<br />

of input membership functions and the type of output membership<br />

functions explicitly specified.<br />

The arguments for genfis1 are as follows:<br />

• data is the training data matrix, which must be entered with all<br />

but the last columns representing input data, and the last column<br />

representing the single output.<br />

• numMFs is a vector whose coordinates specify the number of<br />

membership functions associated with each input. If you want the<br />

same number of membership functions to be associated with each<br />

input, then specify numMFs as a single number.<br />

• inmftype is a string array in which each row specifies the<br />

membership function type associated with each input. This can be<br />

a one-dimensional single string if the type of membership functions<br />

associated with each input is the same.<br />

• outmftype is a string that specifies the membership function type<br />

associated with the output. There canonlybeoneoutput,because<br />

this is a Sugeno-type system. The output membership function type<br />

must be either linear or constant. The number of membership<br />

functions associated with the output is the same as the number of<br />

rules generated by genfis1.<br />

4-31

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

Saved successfully!

Ooh no, something went wrong!