apsumcog.m

来自「FISMAT accommodates different arithmetic」· M 代码 · 共 27 行

M
27
字号
function b = apsumcog(FAMbank,Aj,moments,areas)% b = apsumcog(FAMbank,Aj,moments,areas) %% Algebraic-product operator for the inference. Summation of the outputs.% Defuzzification with Center Of Gravity method.% "crisp" output.% FAMbank = bank of FAM rules%% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 22-April-1994 [i,j,s]=find(FAMbank); % finding all non-zero elements - rules.% s and A are ordered like the rules. However areas and moments are ordered% from left to right - from NB to PB.% Reordering moments and areas in the way that the relate to the corres-% ponding rules:areas=areas(s); moments=moments(s);% generating A* and M* for all rules summarized:As=(Aj*areas')+0.00001; Ms=Aj*moments';% COG:b=Ms/As;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?