functionevalmf
Evaluate a fuzzy membership function
Extends from BusinessSimulation.Icons.Function (Icon for functions).
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 the membership function specified.
Syntax
Functions.evalmf(x, mft, a, b, c, d);
Examples
Functions.evalmf( 5, mft = MembershipFunctionTypes.trapezoid, a=2, b=4, c=6, d=8); // 1.0
See also
rampmf, trapmf, trimf, smf, sigmf, pimf, psigmf, gaussmf, gbellmf
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | Input value for which the degree of membership is to be computed | |
| MembershipFunctionTypes | mft | MembershipFunctionTypes.trapezoidal | Type of membership function to be used |
| Real | a | Parameter of membership function | |
| Real | b | Parameter of membership function | |
| Real | c | Parameter of membership function | |
| Real | d | Parameter of membership function |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y | Degree of membership |