Main Content

Gaussian2 MF

Combination of two Gaussian membership functions

  • Gaussian2 MF block

Libraries:
Fuzzy Logic Toolbox / Membership Functions

Description

The Gaussian2 MF block implements a membership function based on a combination of two Gaussian functions. The two Gaussian functions are given by the following equation.

f(x;σk,ck)=e(xck)22σk2

where k = 1,2. The parameters c1 and σ1 are the mean and standard deviation defining the left-most curve. The parameters c2 and σ2 are the mean and standard deviation defining the right-most curve.

Ports

Input

expand all

Input value for which to compute membership values, specified as a scalar or vector.

Output

expand all

Membership value, returned as a scalar or a vector. The dimensions of MF match the dimensions of x. Each element of MF is the membership value computed for the corresponding element of x.

When c1c2, the membership function reaches a maximum value of 1 over the range [c1, c2].

Otherwise, when c1 > c2, the maximum value is less than one.

Parameters

expand all

Standard deviation σ1 of the left Gaussian function.

Programmatic Use

Block Parameter: sigma1
Type: string, character vector
Default: "3"

Mean c1 of the left Gaussian function.

Programmatic Use

Block Parameter: mu1
Type: string, character vector
Default: "-1"

Standard deviation σ2 of the right Gaussian function.

Programmatic Use

Block Parameter: sigma2
Type: string, character vector
Default: "1"

Mean c2 of the right Gaussian function.

Programmatic Use

Block Parameter: mu2
Type: string, character vector
Default: "5"

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.

Version History

Introduced before R2006a