Fuzzy markup language: Difference between revisions

Content deleted Content added
No edit summary
m FML Syntax: Cleanup and typo fixing, typo(s) fixed: hasn’t → hasn't (3)
Line 131:
</source>
 
Now, let us see a Takagi-Sugeno-Kang system that regulates the same issue. The most important difference with Mamdani system is the definition of a different output variable ''tip''. The <code><TSKVariable></code> tag is used to define an output variable that can be used in a rule of a Tsk system. This tag has the same attributes of a Mamdani output variable except for the ''domainleft'' and ''domainright'' attribute because a variable of this kind (called tsk-variable) hasn’thasn't a universe of discourse. The nested <code><TSKTerm></code> tag represents a linear function and so it is completely different from <code><FuzzyTerm></code>. The <code><TSKValue></code> tag is used to define the coefficients of linear function. The following crunch of FML code shows the definition of output variable ''tip'' in a Tsk system.
 
<source lang="xml">
Line 158:
</source>
 
The FML definition of rule base component in a Tsk system doesn’tdoesn't change a lot. The only different thing is that the <code><Clause></code> tag doesn’tdoesn't have the modifier attribute.
 
As example, consider a tsk rule composed by ''(food is rancid) OR (service is very poor)'' as antecedent and, as consequent, ''tip=1.9+5.6*food+6.0*service'' that can be written as ''tip is cheap'' in an implicitly way. So the rule can be written in this way: