NI Home > Community > NI Discussion Forums

MATRIXx

Reply
Member
steve_ulrich
Posts: 3
0 Kudos
Accepted Solution

Gaussian Membership Curves in System Build FuzzyLogic block

Hi,

 

As noted in the SystemBuildTM FuzzyLogic Block User Guide (ver. Apr 2007), one can create a triangular membership curve by simply using the special function:

 

TRG(x,a,b,c)

 

Is there by any chance another special function to create a Gaussian membership curve (such a membership curve is very common in fuzzy control applications)? If not, any ideas on how I could define it myself, as I really need to use a Gaussian membership curve instead of a triangular one.

 

Many thanks.

Member
steve_ulrich
Posts: 3
0 Kudos

Re: Gaussian Membership Curves in System Build FuzzyLogic block

Ok, for those of you who might be interested in using a Gaussian membership function, I've just found a way to define it in the Fuzzy Logic block using the exp function, as follows:

 

exp(-0.5*(X-c)^2/b^2)

 

where

 

c is the center of Gaussian function, and b^2 is the variance.