public FuzzyRule SetFact(FuzzyFact fact) { if (fact == null) { throw new Exception($"FuzzyRule: fact is empty for domain {Domain}"); } Degree = fact.ClusterDegree[Cluster]; Value = fact.Value; return(this); }
public FuzzyRuleStatement SetResultFact(FuzzyFact fact) { Result.Degree = Math.Min(GetRulesDegree(), Result.SetFact(fact).Degree); return(this); }