|
|
此为规则列表,此表能够唯一性地定义模糊系统的规则:8 J/ i8 G0 f2 [. i* a
例如:# _ O p3 C' W
ruleList=[
! V, X; J- N9 Q# P0 g- r 1 1 1 1 1+ L5 S& ^" _0 F* j$ r
1 2 2 1 1];! k% Y0 }5 F) ~2 S
a = addrule(a,ruleList);$ ^& a0 W6 C) {2 Z
说明系统具有两个输入一个输出:
8 V* ?: L5 Y7 g3 M" H"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1
8 B% c9 l$ p4 S& g+ I% ["If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1
5 s3 W! c1 A/ g8 d0 {1 R补充说明:
! ?; f2 X, h: x1 rThe 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.
% j$ X2 }) w6 o/ J+ k+ iThe 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.
3 h6 y$ @% W& Q# z4 ?3 x3 M' fThe 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.) k! q u) L6 P0 t& r7 e' H7 _
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. |
|