Spark! Fuzzy Logic Editor Help


Variables | Sets | Rules | API | Integration | Tutorial


Membership Functions

Spark! allows you to use four different membership functions:

  

Triangle Membership Function


 

Triangle

The triangle is the most common membership function used in fuzzy logic.  It consists of 3 nodes.
 
Back to top
 

Trapezoid Membership Function


 

Trapezoid

The trapezoid membership function consists of 4 nodes.
 
Back to top
 

S Curve Membership Function


 

S Curve

The S Curve membership function is the most versatile.  It consists of 7 nodes.  It is the only membership function that allows the 'y' value of the nodes to be changed.  The only restriction on the nodes is that they cannot move beyond their neighbor nodes in the 'x' direction.

The 'S' Curve membership function is the only one that allows you to modify the 'y' value of the nodes (note: the first and last node's 'y' values cannot be changed, they must remain at zero).  The only restriction on the 'S' Curve's nodes is that they cannot cross, this restriction is enforced by Spark!.

Back to top
 

Singleton Membership Function


 

Singleton

The singleton membership function is a special case for fuzzy logic.  It represents a discrete value.  It is a "non-fuzzy" membership function.  This is used when a discrete choice is needed - such as if your logic is based on the "type of car".  Values could be: Ford, Chevrolet, Toyota and Buick there really is not an "in between" state.
Back to top