|
此为规则列表,此表能够唯一性地定义模糊系统的规则:! T) ^9 Z" p% |
例如:
+ K* X7 a, Y& g# S' }, [: I. pruleList=[% F7 B5 X5 Y, n& q6 i9 m d# G
1 1 1 1 1+ |, ^; V5 f& A5 D& i( [
1 2 2 1 1];
. A. X4 i4 _/ |7 ja = addrule(a,ruleList);
) a {* Q3 a7 K3 u3 O% h V( p说明系统具有两个输入一个输出:
( D8 I$ c6 G0 I+ i' c( Y. F. j"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=17 ]6 C4 F: Y- ~! R6 w
"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1+ T: e8 e% v: d% S8 \7 L. `
补充说明:
& ~. B( q# Z& e2 f+ v! q4 ?" ~. ]$ _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 D r% h' i9 G3 S f, Q+ fThe 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.
% ?# u1 f( G, r) x0 cThe 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.
]' [ R' q4 Z( 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. |
|