|
|
此为规则列表,此表能够唯一性地定义模糊系统的规则:
2 ?5 s" h. l7 [2 d4 j例如:6 t) m3 [7 m; t0 d X) c
ruleList=[% D& i; t( Q& a3 ?, z$ y3 L( r
1 1 1 1 1; o5 A, [, ~' C
1 2 2 1 1];; ?' x. p a# b( {
a = addrule(a,ruleList);9 O) q1 B% x6 o/ Y# d' p$ n' e+ l
说明系统具有两个输入一个输出:; z3 ]* c5 p6 |- ]
"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1
& N6 Z0 `# Y, O9 C8 M* y, x"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1
9 ? x U% g: P! \! M6 p( k补充说明:
0 M$ H( B- q+ qThe 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.
0 W( E& s4 L; F6 [* S' y' [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.! q1 \% j1 s2 x3 X% p3 _
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.0 D& m/ Y7 V% z( |8 }/ Y
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. |
|