abc2par Convert parameters of membership functions
par = abc2par(abc,FP)
3 parameters for membershipfunctions:
abc and par are the same, where f(x,a,b,c)=1/(1+abs((x-c)/a)^(2*b)).
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.
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.
Membership function, 'gbellmf', 'trimf' or 'trapmf'
Output parameters to match with sciFLT toolbox
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.
abc = [1,0,0]; par = abc2par(abc,'trimf'); x = -2:0.1:2; y = trimf(x,par); plot(x,y); | ![]() | ![]() |