genfis1 - Generate Fuzzy Inference System structure from data using grid partition

Syntax

fismat = genfis1(data) 
fismat = genfis1(data,numMFs,inmftype,outmftype) 

Description

genfis1 generates a Sugeno-type FIS structure used as initial conditions (initialization of the membership function parameters) for anfis training.

genfis1(data) generates a single-output Sugeno-type fuzzy inference system using a grid partition on the data.

genfis1(data,numMFs,inmftype,outmftype) generates a FIS structure from a training data set, data, with the number and type of input membership functions and the type of output membership functions explicitly specified.

The arguments for genfis1 are as follows:

The default number of membership functions, numMFs, is 2; the default input membership function type is 'gbellmf'; and the default output membership function type is 'linear'. These are used whenever genfis1 is invoked without the last three arguments.

The following table summarizes the default inference methods.

Inference MethodDefault
AND prod
ORmax
Implication prod
Aggregationmax
Defuzzificationwtaver

Examples

data = [rand(10,1) 10*rand(10,1)-5 rand(10,1)];
numMFs = [3 7];
mfType = str2mat('pimf','trimf');
fismat = genfis1(data,numMFs,mfType);
[x,mf] = plotmf(fismat,'input',1);
subplot(2,1,1), plot(x,mf);
xlabel('input 1 (pimf)');
[x,mf] = plotmf(fismat,'input',2);
subplot(2,1,2), plot(x,mf);
xlabel('input 2 (trimf)');

showfis(fismat) displays the contents of each field of the structure fismat.

See Also

anfis, genfis2, genfis3

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS