gbellmfGeneralized bell-shaped membership function |
|
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The function returns the degree of membership using a generalized bell-shaped function given the real input x and the parameters width of core a, shape parameter b, and the center value c.
y := 1 / (1 + abs((x - c) / a) ^ (2 * b));
Functions.gbellmf(x, a, b, c);
Functions.gbellmf( 6, a=2, b=4, c=6); // 1.0 Functions.gbellmf( 4, a=2, b=4, c=6); // 0.5 Functions.gbellmf( 8, a=2, b=4, c=6); // 0.5
evalmf, rampmf, trimf trapmf, smf, sigmf, pimf, psigmf, gaussmf,
| x |
Type: Real Description: Input value for which the degree of membership is to be computed |
|---|---|
| a |
Type: Real Description: Width of core (i.e., the interval for which the function gives 1) |
| b |
Type: Real Description: Shape parameter (larger values → steeper transition |
| c |
Type: Real Description: Center of membership function |
| y |
Type: Real Description: Degree of membership |
|---|