/// <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); }
public void AddAntecedent(Clause antecedent) { Antecedents.Add(antecedent); }
public void ApplyMembers(FuzzyValue ant1, FuzzyValue ant2, FuzzyValue cont) { Antecedents.Add(ant1); Antecedents.Add(ant2); Consequent = cont; }