SetsSets are at the heart of fuzzy logic. Spark! provides you with four "membership functions" you can use.
See also the Variables and Rules "how to" pages and the tutorial. Changing Membership FunctionsThere are 3 ways you can change the membership function of a Set:
Moving A Set's NodesYou can move a Set's nodes individually or all the nodes at once. To move a single node, select the node and move it. When a node is selected the mouse pointer changes to a "East/West Pointer". The movement of nodes is constrained to prevent instances where a membership function would have TWO "Degree of Membership" (or 'y') values for a single input value. TIP: If the Shift key is pressed while moving a node, ALL the Set's nodes are moved. Copying/Moving Whole SetsSets can be moved (or copied) one of two ways:
Note: When Sets are copied or moved they are placed in the same position as the original. This will make Sets copied into the same variable appear on top of the original, obscuring it. The color of the Sets is not changed, the Set name is changed to ensure that the Set identifier is unique within the variable. Reordering Sets In The Tree ViewSets can be reordered in the tree view by dragging and dropping them. This has no effect on where the Sets are displayed within the variable view. Changing A Set's ColorTo change a Set's color, select the Set then right mouse click and select "color". Setting A Set's Shoulder PropertiesTo change a Set's shoulder state, select the Set then either:
Your options are enabled/disabled depending on the type of Set and the current Set's shoulder state. Selecting A SetYou can select a Set by clicking anywhere on the Set or by selecting the Set from the tree view. Adding A SetA Set can be added to a variable by going into "insert Set" mode and
adding the Set. To go into "insert Set" mode either select
"Set | Insert Set Mode" or pressing the Once in "insert Set" mode, select the type of Set to insert by selecting "Set | Membership Function" or pressing the appropriate toolbar icon for the Set type you wish to insert: Any where you click on the variable view will add a Set. To
exit "add Set" mode, press ESC, select "Set | Insert Set Mode" again or re-press the Tip: To change the width of the Set you're adding, press the right mouse button then move the mouse up or down. The Set will size accordingly. Deleting A SetTo delete a Set, select it then either:
Changing A Set's NameTo change a Set's name you can edit it in the tree view or click on it in the variable view. Note: Set names must be unique within the variable they are in.
|
|