membership
¶skfuzzy.membership : fuzzy membership function generators
skfuzzy.membership.dsigmf (x, b1, c1, b2, c2) |
Difference of two fuzzy sigmoid membership functions. |
skfuzzy.membership.gauss2mf (x, mean1, ...) |
Gaussian fuzzy membership function of two combined Gaussians. |
skfuzzy.membership.gaussmf (x, mean, sigma) |
Gaussian fuzzy membership function. |
skfuzzy.membership.gbellmf (x, a, b, c) |
Generalized Bell function fuzzy membership generator. |
skfuzzy.membership.piecemf (x, abc) |
Piecewise linear membership function (particularly used in FIRE filters). |
skfuzzy.membership.pimf (x, a, b, c, d) |
Pi-function fuzzy membership generator. |
skfuzzy.membership.psigmf (x, b1, c1, b2, c2) |
Product of two sigmoid membership functions. |
skfuzzy.membership.sigmf (x, b, c) |
The basic sigmoid membership function generator. |
skfuzzy.membership.smf (x, a, b) |
S-function fuzzy membership generator. |
skfuzzy.membership.trapmf (x, abcd) |
Trapezoidal membership function generator. |
skfuzzy.membership.trimf (x, abc) |
Triangular membership function generator. |
skfuzzy.membership.zmf (x, a, b) |
Z-function fuzzy membership generator. |
skfuzzy.membership.
dsigmf
(x, b1, c1, b2, c2)[source]¶Difference of two fuzzy sigmoid membership functions.
Parameters: | x : 1d array
b1 : float
c1 : float
b2 : float
c2 : float
|
---|---|
Returns: | y : 1d array
|
skfuzzy.membership.
gauss2mf
(x, mean1, sigma1, mean2, sigma2)[source]¶Gaussian fuzzy membership function of two combined Gaussians.
Parameters: | x : 1d array or iterable
mean1 : float
sigma1 : float
mean2 : float
sigma2 : float
|
---|---|
Returns: | y : 1d array
|
skfuzzy.membership.
gaussmf
(x, mean, sigma)[source]¶Gaussian fuzzy membership function.
Parameters: | x : 1d array or iterable
mean : float
sigma : float
|
---|---|
Returns: | y : 1d array
|
skfuzzy.membership.
gbellmf
(x, a, b, c)[source]¶Generalized Bell function fuzzy membership generator.
Parameters: | x : 1d array
a : float
b : float
c : float
|
---|---|
Returns: | y : 1d array
|
Notes
Definition of Generalized Bell function is:
y(x) = 1 / (1 + abs([x - c] / a) ** [2 * b])
skfuzzy.membership.
piecemf
(x, abc)[source]¶Piecewise linear membership function (particularly used in FIRE filters).
Parameters: | x : 1d array
abc : 1d array, length 3
|
---|---|
Returns: | y : 1d array
|
Notes
skfuzzy.membership.
pimf
(x, a, b, c, d)[source]¶Pi-function fuzzy membership generator.
Parameters: | x : 1d array
a : float
b : float
c : float
d : float
|
---|---|
Returns: | y : 1d array
|
Notes
This is equivalently a product of smf and zmf.
skfuzzy.membership.
psigmf
(x, b1, c1, b2, c2)[source]¶Product of two sigmoid membership functions.
Parameters: | x : 1d array
b1 : float
c1 : float
b2 : float
c2 : float
|
---|---|
Returns: | y : 1d array
|
Notes
For a smoothed rect-like function, c2 < 0 < c1. For its inverse (zero in middle, one at edges) c1 < 0 < c2.
skfuzzy.membership.
sigmf
(x, b, c)[source]¶The basic sigmoid membership function generator.
Parameters: | x : 1d array
b : float
c : float
|
---|---|
Returns: | y : 1d array
|
Notes
These are the same values, provided separately and in the opposite order compared to the publicly available MathWorks’ Fuzzy Logic Toolbox documentation. Pay close attention to above docstring!
skfuzzy.membership.
smf
(x, a, b)[source]¶S-function fuzzy membership generator.
Parameters: | x : 1d array
a : float
b : float
|
---|---|
Returns: | y : 1d array
|
Notes
Named such because of its S-like shape.
skfuzzy.membership.
zmf
(x, a, b)[source]¶Z-function fuzzy membership generator.
Parameters: | x : 1d array
a : float
b : float
|
---|---|
Returns: | y : 1d array
|
Notes
Named such because of its Z-like shape.