C# 클래스 UnityAI.Core.Fuzzy.FuzzyRule

파일 보기 프로젝트 열기: unityai/unityai-core 1 사용 예제들

공개 메소드들

메소드 설명
FuzzyRule ( FuzzyRuleBase rb, string name, FuzzyClause lhsClauses, FuzzyClause rhs ) : System

Create a new Fuzzy Rule

ToString ( ) : string

String Value of this Rule

비공개 메소드들

메소드 설명
AddRdReference ( int id ) : void

Adds to variables references by this rule

AddWrReference ( int id ) : void

Adds to variables set by this rule

Fire ( double alphaCut, System workingSet ) : void

If this is an unconditional rule (there are no antecedents), simply evaluates the consequent for its side-effects.

If this is a conditional rule (there are antecedents), evaluates the antecedents:

  • If the value of an antecedent clause is below the alphacut threshold, the rule does not fire.
  • Keep track of the minimum truthvalue returned when evaluating each antecedent clause.
  • Pass the minimum to the correlation method ('eval' on the consequent clause).
  • Update working memory to show that the variable in the consequent clause has changed.

FuzzyRule ( FuzzyRuleBase rb, string name, FuzzyClause rhs ) : System

Create a new Fuzzy Rule

Reset ( ) : void

Resets the Rule

메소드 상세

FuzzyRule() 공개 메소드

Create a new Fuzzy Rule
public FuzzyRule ( FuzzyRuleBase rb, string name, FuzzyClause lhsClauses, FuzzyClause rhs ) : System
rb FuzzyRuleBase
name string
lhsClauses FuzzyClause
rhs FuzzyClause
리턴 System

ToString() 공개 메소드

String Value of this Rule
public ToString ( ) : string
리턴 string