/// <summary>
 /// Use this method to create rule by its textual representation
 /// </summary>
 /// <param name="rule">Rule in text form</param>
 /// <returns>Created rule</returns>
 public SugenoFuzzyRule ParseRule(string rule)
 {
     return(RuleParser <SugenoFuzzyRule, SugenoVariable, ISugenoFunction> .Parse(rule, EmptyRule(), Input, Output));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Parse rule from the string
 /// </summary>
 /// <param name="rule">String containing the rule</param>
 /// <returns></returns>
 public MamdaniFuzzyRule ParseRule(string rule)
 {
     return(RuleParser <MamdaniFuzzyRule, FuzzyVariable, FuzzyTerm> .Parse(rule, EmptyRule(), Input, Output));
 }