<< ANFISLab Module ANFISLab Module abcfixed >>

ANFISLab Module >> ANFISLab Module > abc2par

abc2par

abc2par Convert parameters of membership functions

Calling Sequence

par = abc2par(abc,FP)

Parameters

abc :

3 parameters for membershipfunctions:

- gbellmf :

abc and par are the same, where f(x,a,b,c)=1/(1+abs((x-c)/a)^(2*b)).

- trimf :

abc is triangle parameter which a = slope, b = 0, and c is the center of triangle, while par(1) is the lower left point, par(2) is the midpoint, and par(3) is the lower right point.

- trapmf :

abc is triangle parameter which a = slope, b = flatness , and c is the center of trapezoidal, while par(1) is the lower left point, par(2) is the upper left point, par(3) is the upper right point and par(4) is lower right point.

FP :

Membership function, 'gbellmf', 'trimf' or 'trapmf'

par :

Output parameters to match with sciFLT toolbox

Description

This function convert parameters of a membership function from abc to par. This is due to the anfislab is using standardized parameters for training purposes while the sciFLT is using the user friendly parameters. Please note that this function is meant for the advance user or developer who want to adapt new membership functions for ANFIS.

Examples

abc = [1,0,0];
par = abc2par(abc,'trimf');
x = -2:0.1:2;
y = trimf(x,par);
plot(x,y);

See also

Authors


Report an issue
<< ANFISLab Module ANFISLab Module abcfixed >>