C# Класс UnityAI.Core.Fuzzy.FuzzyRuleBase

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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