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

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

Private Properties

Свойство Тип Описание
GetOrAddHedgedSet FuzzySet
GetRawValue double
GetSet FuzzySet
SetExist bool
SetFuzzyValue void
SetRawValue void
SetRawValue void
WithinUniverseOfDiscourse bool

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

Метод Описание
AddSetShoulder ( string setName, double alphaCut, double ptBeg, double ptEnd, EnumFuzzySetDirection setDir ) : void

Add Set Shoulder

AddSetTrapezoid ( string setName, double alphaCut, double ptLeft, double ptLeftCore, double ptRightCore, double ptRight ) : void

Add the Trapezoid Set

AddSetTriangle ( string setName, double alphaCut, double ptLeft, double ptCenter, double ptRight ) : void

Add a Set Triangle

ContinuousFuzzyRuleVariable ( FuzzyRuleBase fuzzyBase, string name, double discourseLo, double discourseHi ) : System

Create a new Continuous Variable

GetFuzzyValue ( ) : FuzzySet

Get the Fuzzy Value

GetNumericValue ( ) : double

Get the Numeric Value

Reset ( ) : void

Reset teh Variable

SetFuzzyValue ( FuzzySet newValue ) : void

Set the Fuzzy Value

SetNumericValue ( double newValue ) : void

Set the Numeric Value

ToString ( ) : string

Returns the name of this variable.

Приватные методы

Метод Описание
GetOrAddHedgedSet ( string setName, string hedges ) : FuzzySet

Get the Hedged Set or Add it

GetRawValue ( ) : double

Get the Crisp Value

GetSet ( string setName ) : FuzzySet

Get the Set By Name

SetExist ( string setName ) : bool

Check if the Set Exists

SetFuzzyValue ( FuzzySet newSet, double truthValue ) : void

Set the Truth Value

SetRawValue ( FuzzySet newSet ) : void

Set the Raw Value

SetRawValue ( double newValue ) : void

Set the Crispt value

WithinUniverseOfDiscourse ( double dValue ) : bool

Checks if variable is within the discourse

Описание методов

AddSetShoulder() публичный Метод

Add Set Shoulder
public AddSetShoulder ( string setName, double alphaCut, double ptBeg, double ptEnd, EnumFuzzySetDirection setDir ) : void
setName string
alphaCut double
ptBeg double
ptEnd double
setDir EnumFuzzySetDirection
Результат void

AddSetTrapezoid() публичный Метод

Add the Trapezoid Set
public AddSetTrapezoid ( string setName, double alphaCut, double ptLeft, double ptLeftCore, double ptRightCore, double ptRight ) : void
setName string
alphaCut double
ptLeft double
ptLeftCore double
ptRightCore double
ptRight double
Результат void

AddSetTriangle() публичный Метод

Add a Set Triangle
public AddSetTriangle ( string setName, double alphaCut, double ptLeft, double ptCenter, double ptRight ) : void
setName string
alphaCut double
ptLeft double
ptCenter double
ptRight double
Результат void

ContinuousFuzzyRuleVariable() публичный Метод

Create a new Continuous Variable
public ContinuousFuzzyRuleVariable ( FuzzyRuleBase fuzzyBase, string name, double discourseLo, double discourseHi ) : System
fuzzyBase FuzzyRuleBase FuzzyBase
name string Name
discourseLo double Low
discourseHi double High
Результат System

GetFuzzyValue() публичный Метод

Get the Fuzzy Value
public GetFuzzyValue ( ) : FuzzySet
Результат FuzzySet

GetNumericValue() публичный Метод

Get the Numeric Value
public GetNumericValue ( ) : double
Результат double

Reset() публичный Метод

Reset teh Variable
public Reset ( ) : void
Результат void

SetFuzzyValue() публичный Метод

Set the Fuzzy Value
public SetFuzzyValue ( FuzzySet newValue ) : void
newValue FuzzySet
Результат void

SetNumericValue() публичный Метод

Set the Numeric Value
public SetNumericValue ( double newValue ) : void
newValue double
Результат void

ToString() публичный Метод

Returns the name of this variable.
public ToString ( ) : string
Результат string