Пример #1
0
 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);
 }
Пример #2
0
 public FuzzyRuleStatement SetResultFact(FuzzyFact fact)
 {
     Result.Degree = Math.Min(GetRulesDegree(), Result.SetFact(fact).Degree);
     return(this);
 }