C# Class UnityAI.Core.Fuzzy.FuzzyRuleBase

Afficher le fichier Open project: unityai/unityai-core Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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)

Method Details

AddConditionalRule() public méthode

Add a Conditional Rule
public AddConditionalRule ( FuzzyRule rule ) : void
rule FuzzyRule The Rule
Résultat void

AddUnconditionalRule() public méthode

Add an Unconditional Rule
public AddUnconditionalRule ( FuzzyRule rule ) : void
rule FuzzyRule The Rule
Résultat void

AddVariable() public méthode

Add the Variable
public AddVariable ( FuzzyRuleVariable variable ) : void
variable FuzzyRuleVariable The Variable
Résultat void

Clear() public méthode

Clear the RuleBase
public Clear ( ) : void
Résultat void

CreateClause() public méthode

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
Résultat FuzzyClause

ForwardChain() public méthode

Forward Chain through the Fuzzy Rulebase Rules are Reset Uncoditional Rules are Fired Conditional Rules are Fired
public ForwardChain ( ) : void
Résultat void

FuzzyRuleBase() public méthode

Creaes a Fuzzy Rule Base
public FuzzyRuleBase ( string vsName ) : System
vsName string Name of the Rule Base
Résultat System

GetVariable() public méthode

Get the Variable based on the Name
public GetVariable ( string name ) : FuzzyRuleVariable
name string Name of Variable
Résultat FuzzyRuleVariable

Reset() public méthode

Reset the Variables
public Reset ( ) : void
Résultat void