|
此为规则列表,此表能够唯一性地定义模糊系统的规则:5 }% {5 ? \9 N0 T. {3 k7 {
例如:; f B; S/ S- A* \! G0 c
ruleList=[1 F( Z# d( a& i1 W& C
1 1 1 1 1
8 u; H/ I5 i/ p4 B* X8 E 1 2 2 1 1];
) E' p6 r ]- Q8 V j ba = addrule(a,ruleList);
4 i* h$ h" J6 z2 q! x m4 G3 W说明系统具有两个输入一个输出:
* }2 q. d" m4 H4 e; K"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1- u( Z* @' h( g+ Y/ h
"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1
& v& b% }8 f+ W, T$ v补充说明:3 _8 I7 `- {! W. a1 J
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.* a* p. w. M, w! j$ Z) O% N
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 w0 \/ U5 Q, Y, P: t# Z
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.8 x* n- {5 t2 d* S* q Y3 r6 \4 b
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. |
|