Esempio n. 1
0
 /// <summary>
 ///   Gets whether this rule and another rule have
 ///   the same antecedents but different outputs.
 /// </summary>
 ///
 /// <param name="rule"></param>
 ///
 /// <returns>True if the two rules are contradictory;
 ///   false otherwise.</returns>
 ///
 public bool IsInconsistentWith(DecisionRule rule)
 {
     return(Antecedents.SetEquals(rule.Antecedents) && Output != rule.Output);
 }
Esempio n. 2
0
File: Rule.cs Progetto: koanse/smart
 public void AddAntecedent(Clause antecedent)
 {
     Antecedents.Add(antecedent);
 }
Esempio n. 3
0
 public void ApplyMembers(FuzzyValue ant1, FuzzyValue ant2, FuzzyValue cont)
 {
     Antecedents.Add(ant1);
     Antecedents.Add(ant2);
     Consequent = cont;
 }