C# Class UnityAI.Core.Fuzzy.ContinuousFuzzyRuleVariable

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

Private Properties

Свойство Type Description
GetOrAddHedgedSet FuzzySet
GetRawValue double
GetSet FuzzySet
SetExist bool
SetFuzzyValue void
SetRawValue void
SetRawValue void
WithinUniverseOfDiscourse bool

Méthodes publiques

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

Private Methods

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

Method Details

AddSetShoulder() public méthode

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

AddSetTrapezoid() public méthode

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

AddSetTriangle() public méthode

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

ContinuousFuzzyRuleVariable() public méthode

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

GetFuzzyValue() public méthode

Get the Fuzzy Value
public GetFuzzyValue ( ) : FuzzySet
Résultat FuzzySet

GetNumericValue() public méthode

Get the Numeric Value
public GetNumericValue ( ) : double
Résultat double

Reset() public méthode

Reset teh Variable
public Reset ( ) : void
Résultat void

SetFuzzyValue() public méthode

Set the Fuzzy Value
public SetFuzzyValue ( FuzzySet newValue ) : void
newValue FuzzySet
Résultat void

SetNumericValue() public méthode

Set the Numeric Value
public SetNumericValue ( double newValue ) : void
newValue double
Résultat void

ToString() public méthode

Returns the name of this variable.
public ToString ( ) : string
Résultat string