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

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

공개 메소드들

메소드 설명
AddConditionalRule ( FuzzyRule rule ) : void

Add a Conditional Rule

AddUnconditionalRule ( FuzzyRule rule ) : void

Add an Unconditional Rule

AddVariable ( FuzzyRuleVariable variable ) : void

Add the Variable

Clear ( ) : void

Clear the RuleBase

CreateClause ( ContinuousFuzzyRuleVariable lhs, EnumFuzzyOperator oper, string hedges, string setName ) : FuzzyClause

Crate the Clause

ForwardChain ( ) : void

Forward Chain through the Fuzzy Rulebase Rules are Reset Uncoditional Rules are Fired Conditional Rules are Fired

FuzzyRuleBase ( string vsName ) : System

Creaes a Fuzzy Rule Base

GetVariable ( string name ) : FuzzyRuleVariable

Get the Variable based on the Name

Reset ( ) : void

Reset the Variables

비공개 메소드들

메소드 설명
BitArrayEquality ( System b1, System b2 ) : bool

Check if BitArrays are Equal

GetFuzzySet ( ContinuousFuzzyRuleVariable lhs, string setName, string hedges ) : FuzzySet

Get the FuzzySet based on the hedges

ProcessAssertionRules ( System factBase ) : void

Processes the Assertion Rules

ProcessConditionalRules ( System factBase ) : void

Fires the rule (if-then)

메소드 상세

AddConditionalRule() 공개 메소드

Add a Conditional Rule
public AddConditionalRule ( FuzzyRule rule ) : void
rule FuzzyRule The Rule
리턴 void

AddUnconditionalRule() 공개 메소드

Add an Unconditional Rule
public AddUnconditionalRule ( FuzzyRule rule ) : void
rule FuzzyRule The Rule
리턴 void

AddVariable() 공개 메소드

Add the Variable
public AddVariable ( FuzzyRuleVariable variable ) : void
variable FuzzyRuleVariable The Variable
리턴 void

Clear() 공개 메소드

Clear the RuleBase
public Clear ( ) : void
리턴 void

CreateClause() 공개 메소드

Crate the Clause
public CreateClause ( ContinuousFuzzyRuleVariable lhs, EnumFuzzyOperator oper, string hedges, string setName ) : FuzzyClause
lhs ContinuousFuzzyRuleVariable Left Hand Side
oper EnumFuzzyOperator Operator
hedges string Hedges
setName string Set Name
리턴 FuzzyClause

ForwardChain() 공개 메소드

Forward Chain through the Fuzzy Rulebase Rules are Reset Uncoditional Rules are Fired Conditional Rules are Fired
public ForwardChain ( ) : void
리턴 void

FuzzyRuleBase() 공개 메소드

Creaes a Fuzzy Rule Base
public FuzzyRuleBase ( string vsName ) : System
vsName string Name of the Rule Base
리턴 System

GetVariable() 공개 메소드

Get the Variable based on the Name
public GetVariable ( string name ) : FuzzyRuleVariable
name string Name of Variable
리턴 FuzzyRuleVariable

Reset() 공개 메소드

Reset the Variables
public Reset ( ) : void
리턴 void