gaussmf

Gaussian membership function

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 a Gaussian function given the real input x and the parameters half width at half maximum a and mean c.

Implementation


sigma = a / 1.177410022515474691;
y := exp(-(x - c) ^ 2 / (2 * sigma ^ 2));

Syntax

Functions.gaussmf(x, a, c);

Examples


Functions.gaussmf( 5, a=2, c=5); // 1.0 Functions.gaussmf( 3, a=2, c=5); // 0.5 Functions.gaussmf( 7, a=2, c=5); // 0.5

See also

evalmf, rampmf, trimf, trapmf, smf, sigmf, pimf, psigmf, gbellmf

Syntax

y = gaussmf(x, a, c)

Inputs (3)

x

Type: Real

Description: Input value for which the degree of membership is to be computed

a

Type: Real

Description: Half width at half maximum (HWHM)

c

Type: Real

Description: Mean value

Outputs (1)

y

Type: Real

Description: Degree of membership