inferenc.m

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

M
26
字号
function Bs = inferenc(A,B,FAMbank,infop)% Bs = inferenc(A,B,FAMbank,infop)%% With Bj and aj and the inference operator infop Bj*=infop(aj,Bj) is % calculated. Bj* is the fuzzy conclusion for the jth rule.% A=[a1,a2,...,aj,...,am] and B=library of fuzzy sets or membership values% for the output variable. Using the min-operator for infop ('t3mi') is% called Min-Inference. Using the algebraic-product ('t2ap') is called% Product-Inference.%% FSTB - Fuzzy Systems Toolbox for MATLAB% Copyright (c) 1993-1996 by Olaf Wolkenhauer% Control Systems Centre at UMIST% Manchester M60 1QD, UK%% 21-April-1994 no_of_rules=length(A);N=length(B);Bs=zeros(no_of_rules,N); % m rules/rows. [i,j,s]=find(FAMbank); % searching for rules.for rule=1:no_of_rules,  Bs(rule,:)=feval(infop,A(rule).*ones(1,N),B(s(rule),:));end;

⌨️ 快捷键说明

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