How to see the firing strength using command line of a fuzzy System?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have built a fuzzy system from scratch using the fuzzy logic toolbox. My FIS has a huge number of rules and I would like to see, after using the comand evalfis for a concrete example, which is the firing strength of each rule. The problems is that I can not figure out how to access to this information using command line.
Thak you for your help
0 Kommentare
Antworten (1)
Sam Chak
am 21 Sep. 2024
Hi @Luis M
The firing strengths can be obtained from the 5th output argument of the 'evalfis' command. Howevern note that this approach doesn't work when the fis is a fistree object.
fis = readfis('tipper')
Service_Val = 2;
Food_Val = 1;
[output, fuzzifiedIn, ruleOut, aggregatedOut, ruleFiring] = evalfis(fis, [Service_Val Food_Val]);
disp(fuzzifiedIn)
disp(ruleFiring)
Alternative:
The firing strengths can be also be determined by manually performing the fuzzy operations on the fuzzified input values.
% Rule 1 firing strength
max(fuzzifiedIn(1,:))
% Rule 2 firing strength
min(fuzzifiedIn(2,:))
% Rule 3 firing strength
max(fuzzifiedIn(3,:))
plotrule(fis, Inputs=[Service_Val Food_Val])
0 Kommentare
Siehe auch
Kategorien
Mehr zu Fuzzy Inference System Modeling finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!