///<summary> ///constructor using four terms ///</summary> ///<param name="op1"></param> ///<param name="op2"></param> ///<param name="op3"></param> ///<param name="op4"></param> public FzAND(FuzzyTerm op1, FuzzyTerm op2, FuzzyTerm op3, FuzzyTerm op4) { Terms.Add(op1.Clone()); Terms.Add(op2.Clone()); Terms.Add(op3.Clone()); Terms.Add(op4.Clone()); }
///<summary> ///constructor using three terms ///</summary> ///<param name="op1"></param> ///<param name="op2"></param> ///<param name="op3"></param> public FzOR(FuzzyTerm op1, FuzzyTerm op2, FuzzyTerm op3) { Terms.Add(op1.Clone()); Terms.Add(op2.Clone()); Terms.Add(op3.Clone()); }
///<summary> ///constructor using two terms ///</summary> ///<param name="op1"></param> ///<param name="op2"></param> public FzAND(FuzzyTerm op1, FuzzyTerm op2) { Terms.Add(op1.Clone()); Terms.Add(op2.Clone()); }
///<summary> ///add a rule ///</summary> ///<param name="antecedent"></param> ///<param name="consequence"></param> public void AddRule(FuzzyTerm antecedent, FuzzyTerm consequence) { Rules.Add(new FuzzyRule(antecedent, consequence)); }