<< abcfixed ANFISLab Module editanfis >>

ANFISLab Module >> ANFISLab Module > anfis

anfis

anfis Train an ANFIS model.

Calling Sequence

[out_fls,evola] = anfis(traindata,in_fls)
[out_fls,evola] = anfis(traindata,in_fls,itr,err,step_sz)

Parameters

traindata :

Training data, each variables arranged in a column, with last column as the output varaible

in_fls :

ANFIS model to be trained (in format compatible with sciFLT)

itr :

Number of iteration

err :

Error for stoping condition

step_sz :

Step size

out_fls :

ANFIS model which has been trained (in format compatible with sciFLT)

evola :

Information for each iteration

Description

This function train the anfis model with the provided data and model.

Examples

x = (0:0.1:10)';
y = sin(2*x)./exp(x/5);
fls = initanfis([x y],5,'gbellmf');
[fls,evola] = anfis([x y],fls);
y2 = evalfls(x,fls);
plot(x,y,'bo--',x,y2,'r.--');
legend('Original Data', 'ANFIS Output');

See also

Authors


Report an issue
<< abcfixed ANFISLab Module editanfis >>