get_mom_output()Gets the maxima output value. int get_mom_output() Parameters
Return ValueThe index of the "winning" output set. The "winner" is the set with the largest "degree of membership" or "y" value. If no rules are active 255 is returned. RemarksThe index of the set should be from the .h file exported from the Spark! model. The set's index may not coincide with the screen position of the set. See Export .h File for more details. This defuzzification method can be used for Fuzzy State Machines (FuSMs). In FuSMs you are concerned with finding which action to take ("run away", "fight", "hide") rather than a "defuzzified" value that is output from the system (see get_cog_output() for that functionality). Example
|
|