singleton function
hi
will you suggest me how to get singleton function as output variable in fuzzy logic toolbox of MATLAB
Quote: Original post by pvrln1
will you suggest me how to get singleton function as output variable in fuzzy logic toolbox of MATLAB
One simple way is to calculate the centroid of the output fuzzy set as the weighted average over the output domain. I forget the exact data structure used by the Fuzzy Logic Toolbox, but it would be the average of all output domain values, weighted by their respective fuzzy truth values, something like this in MATLAB:
OutputCentroid = sum(OutputTruth .* OutputDomain) / sum(OutputTruth);
...where OutputTruth is a vector of fuzzy truth values resulting from the fuzzy rulebase's inference, and OutputDomain is a vector of values in the output domain.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement