C# Class UnityAI.Core.Fuzzy.ContinuousFuzzyRuleVariable

Inheritance: FuzzyRuleVariable
Show file Open project: unityai/unityai-core Class Usage Examples

Private Properties

Property Type Description
GetOrAddHedgedSet FuzzySet
GetRawValue double
GetSet FuzzySet
SetExist bool
SetFuzzyValue void
SetRawValue void
SetRawValue void
WithinUniverseOfDiscourse bool

Public Methods

Method 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

Method 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 method

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
return void

AddSetTrapezoid() public method

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
return void

AddSetTriangle() public method

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
return void

ContinuousFuzzyRuleVariable() public method

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
return System

GetFuzzyValue() public method

Get the Fuzzy Value
public GetFuzzyValue ( ) : FuzzySet
return FuzzySet

GetNumericValue() public method

Get the Numeric Value
public GetNumericValue ( ) : double
return double

Reset() public method

Reset teh Variable
public Reset ( ) : void
return void

SetFuzzyValue() public method

Set the Fuzzy Value
public SetFuzzyValue ( FuzzySet newValue ) : void
newValue FuzzySet
return void

SetNumericValue() public method

Set the Numeric Value
public SetNumericValue ( double newValue ) : void
newValue double
return void

ToString() public method

Returns the name of this variable.
public ToString ( ) : string
return string