<< initanfis ANFISLab Module

ANFISLab Module >> ANFISLab Module > par2abc

par2abc

par2abc Convert parameters of membership functions

Calling Sequence

abc = par2abc(par,FP)

Parameters

par :

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'

abc :

Output parameters to match with anfislab toolbox

Description

This function convert parameters of a membership function from par to abc. 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

par = [0 1 2]
abc = par2abc(par,'trimf');

See also

Authors


Report an issue
<< initanfis ANFISLab Module