|
|
此为规则列表,此表能够唯一性地定义模糊系统的规则:
c [9 F' M. ]! F+ _$ O例如:
( ?; b0 @3 A R4 A! R5 C7 N; h. g5 q. ~ruleList=[" `) ?( a2 b& A
1 1 1 1 1
3 a, b" F; k4 _0 d! t 1 2 2 1 1];
8 l1 ]5 n9 n: d# o( N1 z. C/ Ra = addrule(a,ruleList);
6 J2 ^$ J' I9 J) z y( a: p说明系统具有两个输入一个输出:6 Y- z' \7 G( x* S* v9 m
"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1
2 v9 \( w; j; E9 s# ?- j"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1
" ]8 _" U% `8 K! K6 B! X5 B补充说明:
# ~3 T0 t4 T' Q" G- JThe 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.( O! x$ i& j4 A5 q9 ?6 J& 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.( }1 S$ i& G- K
The 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.- m5 j/ W0 {; j8 |* w9 a: m2 Q
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. |
|