示例#1
0
 // Adds a rule to the module
 public void AddRule(FuzzyTerm antecedent, FuzzyTerm consequence) => rules.Add(new FuzzyRule(antecedent, consequence));
 public FzAND(FuzzyTerm fuzzyTerm1, FuzzyTerm fuzzyTerm2, FuzzyTerm fuzzyTerm3, FuzzyTerm fuzzyTerm4)
     : this(fuzzyTerm1, fuzzyTerm2, fuzzyTerm3)
 {
     fuzzyTerms.Add(fuzzyTerm4.Clone());
 }
示例#3
0
 public FzOR(FuzzyTerm fuzzyTerm1, FuzzyTerm fuzzyTerm2, FuzzyTerm fuzzyTerm3)
     : this(fuzzyTerm1, fuzzyTerm2)
 {
     fuzzyTerms.Add(fuzzyTerm3.Clone());
 }
 public FzAND(FuzzyTerm fuzzyTerm1, FuzzyTerm fuzzyTerm2)
 {
     fuzzyTerms.Add(fuzzyTerm1.Clone());
     fuzzyTerms.Add(fuzzyTerm2.Clone());
 }
 public FuzzyRule(FuzzyTerm antecedent, FuzzyTerm consequence)
 {
     this.antecedent  = antecedent.Clone();
     this.consequence = consequence.Clone();
 }