.BusinessSimulation.Functions.gbellmf

Information

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.

Implementation


y := 1 / (1 + abs((x - c) / a) ^ (2 * b));

Syntax

Functions.gbellmf(x, a, b, c);

Examples


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

See also

evalmf, rampmf, trimf trapmf, smf, sigmf, pimf, psigmf, gaussmf,

Interface

function gbellmf
  extends BusinessSimulation.Icons.Function;
  input Real x "Input value for which the degree of membership is to be computed";
  input Real a "Width of core (i.e., the interval for which the function gives 1)";
  input Real b "Shape parameter (larger values → steeper transition";
  input Real c "Center of membership function";
  output Real y "Degree of membership";
end gbellmf;

Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos