|
此为规则列表,此表能够唯一性地定义模糊系统的规则:, ~& P3 o4 S. k
例如:/ B7 T9 i: t: g* D* @
ruleList=[
2 ?3 y7 o% b8 c8 [ w 1 1 1 1 1
9 w$ m; e" K4 v8 Q/ S( @* V 1 2 2 1 1];
8 ^. m0 B% z" ?1 g' D8 k5 ca = addrule(a,ruleList);/ _) {0 S4 s4 c% E u) h
说明系统具有两个输入一个输出:
8 R6 T6 v' [7 a9 V. `5 P"If Input 1 is MF 1 AND Input 2 is MF 1, then Output 1 is MF 1." 此规则的权重weight=1
8 [- F& F& M( ~"If Input 1 is MF 1 AND Input 2 is MF 2, then Output 1 is MF 2." 此规则的权重weight=1. h3 `+ R( j! _+ {
补充说明:
6 g* |; @/ k9 u3 ~4 q* VThe 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.
7 J1 R" a6 t; r$ [ QThe 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.
% C- s" y6 Y* l# Z1 Q5 i, c" 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.
% @' L4 y7 A6 h& G' @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. |
|