|
|
此为规则列表,此表能够唯一性地定义模糊系统的规则:
% N) D/ L$ y' l, c" D例如:
7 e% @9 I0 x+ C/ p- fruleList=[: R; o* N8 ~6 U9 z
1 1 1 1 1
0 I0 r( u* O* B+ Y! j2 g5 T* B 1 2 2 1 1];
$ D( R; X! t' A! H+ Y7 q1 C8 Na = addrule(a,ruleList); M/ ?. e2 W! y; g& d; ^3 A
说明系统具有两个输入一个输出:- ]0 |' a7 f) x0 X
"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1
# M+ i% l" F, _ ]"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1$ e3 x3 Z& n1 g9 H& o
补充说明:& Q' f0 I& w/ c
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./ t; `2 q; B$ U1 P* |& e$ J5 r
The 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.
2 b8 J* B+ J1 n+ m) a7 T3 XThe 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.
/ l* |( [( `1 B; ?/ x3 L8 {The 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. |
|