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

TypeNameDefaultDescription
RealxInput value for which the degree of membership is to be computed
MembershipFunctionTypesmftMembershipFunctionTypes.trapezoidalType of membership function to be used
RealaParameter of membership function
RealbParameter of membership function
RealcParameter of membership function
RealdParameter of membership function

Outputs

TypeNameDefaultDescription
RealyDegree of membership