Module liba.mf

membership function

Functions

gauss (x, sigma, c) gaussian membership function
gauss2 (x, sigma1, c1, sigma2, c2) product of two sigmoidal membership functions
gbell (x, a, b, c) generalized bell-shaped membership function
sig (x, a, c) sigmoidal membership function
dsig (x, a1, c1, a2, c2) difference between two sigmoidal membership functions
psig (x, a1, c1, a2, c2) product of two sigmoidal membership functions
trap (x, a, b, c, d) trapezoidal membership function
tri (x, a, b, c) triangular membership function
lins (x, a, b) linear s-shaped saturation membership function
linz (x, a, b) linear z-shaped saturation membership function
s (x, a, b) s-shaped membership function
z (x, a, b) z-shaped membership function
pi (x, a, b, c, d) z-shaped membership function
mf (e, x, ...) membership function

Tables

mf enumeration for membership function


Functions

gauss (x, sigma, c)
gaussian membership function

Parameters:

  • x number input value for which to compute membership value.
  • sigma number is the standard deviation.
  • c number is the mean.

Returns:

    number membership value.
gauss2 (x, sigma1, c1, sigma2, c2)
product of two sigmoidal membership functions

Parameters:

  • x number input value for which to compute membership value.
  • sigma1 number is the standard deviation of the left gaussian function.
  • c1 number is the mean of the left gaussian function.
  • sigma2 number is the standard deviation of the right gaussian function.
  • c2 number is the mean of the right gaussian function.

Returns:

    number membership value.
gbell (x, a, b, c)
generalized bell-shaped membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines the width of the membership function, where a larger value creates a wider membership function.
  • b number defines the shape of the curve on either side of the central plateau, where a larger value creates a more steep transition.
  • c number defines the center of the membership function.

Returns:

    number membership value.
sig (x, a, c)
sigmoidal membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines the width of the transition area.
  • c number defines the center of the transition area.

Returns:

    number membership value.
dsig (x, a1, c1, a2, c2)
difference between two sigmoidal membership functions

Parameters:

  • x number input value for which to compute membership value.
  • a1 number defines the width of the first transition area.
  • c1 number defines the center of the first transition area.
  • a2 number defines the width of the second transition area.
  • c2 number defines the center of the second transition area.

Returns:

    number membership value.
psig (x, a1, c1, a2, c2)
product of two sigmoidal membership functions

Parameters:

  • x number input value for which to compute membership value.
  • a1 number defines the width of the first transition area.
  • c1 number defines the center of the first transition area.
  • a2 number defines the width of the second transition area.
  • c2 number defines the center of the second transition area.

Returns:

    number membership value.
trap (x, a, b, c, d)
trapezoidal membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines its left foot.
  • b number defines its left shoulder.
  • c number defines its right shoulder.
  • d number defines its right foot.

Returns:

    number membership value.
tri (x, a, b, c)
triangular membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines its left foot.
  • b number defines its peak.
  • c number defines its right foot.

Returns:

    number membership value.
lins (x, a, b)
linear s-shaped saturation membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines its foot.
  • b number defines its shoulder.

Returns:

    number membership value.
linz (x, a, b)
linear z-shaped saturation membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines its shoulder.
  • b number defines its foot.

Returns:

    number membership value.
s (x, a, b)
s-shaped membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines its foot.
  • b number defines its shoulder.

Returns:

    number membership value.
z (x, a, b)
z-shaped membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines its shoulder.
  • b number defines its foot.

Returns:

    number membership value.
pi (x, a, b, c, d)
z-shaped membership function

Parameters:

  • x number input value for which to compute membership value.
  • a number defines its left foot.
  • b number defines its left shoulder.
  • c number defines its right shoulder.
  • d number defines its right foot.

Returns:

    number membership value.
mf (e, x, ...)
membership function

Parameters:

  • e int type for membership function
  • x number input value for which to compute membership value.
  • ... number is an array that stores parameters.

Returns:

    number membership value.

Tables

mf
enumeration for membership function

Fields:

  • NUL none
  • GAUSS gaussian membership function
  • GAUSS2 gaussian combination membership function
  • GBELL generalized bell-shaped membership function
  • SIG sigmoidal membership function
  • DSIG difference between two sigmoidal membership functions
  • PSIG product of two sigmoidal membership functions
  • TRAP trapezoidal membership function
  • TRI triangular membership function
  • LINS linear s-shaped saturation membership function
  • LINZ linear z-shaped saturation membership function
  • S s-shaped membership function
  • Z z-shaped membership function
  • PI pi-shaped membership function
generated by LDoc 1.5.0 Last updated 2024-09-30 14:51:04