Skip to content

Membership Functions

david grupp edited this page Sep 25, 2015 · 15 revisions

Membership Functions

All membership functions y-values are between 0 and 1. The Min and Max methods return the functions min and max x-values.

Trapezoid

var func = new TrapezoidMembershipFunction("name", a, b, c, d);

Triangle

var func = new TriangleMembershipFunction("name", a, b, c);

Rectangle

var func = new RectangeMembershipFunction("name", a, b);

Gaussian

The gaussian membership function uses the following equation:

View it on wolframealpha

var func = new GaussianMembershipFunction("name", c, tou);

Generalized Bell

The generalized bell membership function uses the following equation:

View it on wolframealpha

var func = new BellMembershipFunction("name", a, b, c);

S-Shaped and Z-Shaped

The s-shaped and z-shaped membership function uses the following equations: and

View it on wolframealpha

S-Shaped:

Z-Shaped:

var Sfunc = new SShapedMembershipFunction("name", a, b);
var Zfunc = new ZShapedMembershipFunction("name", a, b);

Composite

var func = new CompositeMembershipFunction("name", 
            leftFunction, rightFunction, midPoint);
Clone this wiki locally