|
|
此为规则列表,此表能够唯一性地定义模糊系统的规则:
. Q d3 q6 P. ^( [2 s! V9 w例如:, x" h# L- n" g4 i
ruleList=[3 c" j$ Q' ^ ~* z4 W
1 1 1 1 1
6 X7 G1 C, s* v1 i( @& V+ T 1 2 2 1 1];
: u/ p* c# O/ c1 c+ |% Ta = addrule(a,ruleList);
* f' w. M; K4 i( m4 L说明系统具有两个输入一个输出:( r# q# z. }# ^! X0 A9 T
"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1; x4 p* e0 s2 D3 \% ?: X
"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1) M4 S& f3 ^4 u6 r5 S$ Q6 X# `
补充说明:
' b1 P+ q8 Z# L5 Q5 R) UThe 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.& j6 E, Z; c2 Y0 K& g
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.
! e) x, y+ k( K9 P9 D& QThe 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.- r3 e3 S/ N1 q% T
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. |
|