|
|
此为规则列表,此表能够唯一性地定义模糊系统的规则:
( d5 v7 P* w, b% Q# U; M/ W. W例如:) H: e/ }* B I0 U
ruleList=[' C2 H/ \3 s3 d
1 1 1 1 1
% B9 {7 X) y, E1 x8 t) u" b 1 2 2 1 1];+ y/ L q! a' e
a = addrule(a,ruleList);
. o+ R1 l- D; a5 h, I: @5 R3 z说明系统具有两个输入一个输出:
* d1 z2 C1 a# x7 k2 }# l% t2 E2 N"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1: @2 K$ g9 N: R
"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1
, ~% x/ `2 t" h& h* ~8 L/ Z补充说明:. A9 h- \- r2 m7 E& I9 [
The first m columns refer to the inputs of the system. Each column contains a number that refers to the index of the membership function for that variable.
3 v! U: r7 {% \# e# o1 t. N; q8 QThe next n columns refer to the outputs of the system. Each column contains a number that refers to the index of the membership function for that variable.
: d* g( l, ~# j7 P5 a; ^3 LThe m + n + 1 column contains the weight that is to be applied to the rule. The weight must be a number between zero and one and is generally left as one.
2 l! H8 O' Y8 f: L- G/ i. Y1 ZThe m + n + 2 column contains a 1 if the fuzzy operator for the rule's antecedent is AND. It contains a 2 if the fuzzy operator is OR. |
|