示例#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);
 }