C# Class UnityAI.Core.Fuzzy.FuzzySet

显示文件 Open project: unityai/unityai-core Class Usage Examples

Protected Properties

Property Type Description
mdAlphaCut double
mdDomainHi double
mdDomainLo double
mdTruthVector double[]
meSetType EnumFuzzySetType
moParentVar ContinuousFuzzyRuleVariable
msSetName string

Private Properties

Property Type Description
AboveAlphaCut bool
AddClone void
ApplyAlphaCut void
ApplyHedgeConDil void
ApplyHedges void
Defuzzify double
GetScalar double
GetTruthValue double
Membership double
Normalize void
SegmentCurve int[]
VectorInterpret void

Public Methods

Method Description
ToString ( ) : string

Retrieves a string describing the contents of the object.

Protected Methods

Method Description
FuzzySet ( EnumFuzzySetType setType, string setName, ContinuousFuzzyRuleVariable parentVar, double alphaCut ) : System

Create a new Fuzzy Set

FuzzySet ( EnumFuzzySetType setType, string setName, ContinuousFuzzyRuleVariable parentVar, double alphaCut, double domainLo, double domainHi ) : System

Create a new Fuzzy Set

Private Methods

Method Description
AboveAlphaCut ( double truthValue ) : bool

Checks if the truth values is above the alpha cut value.

AddClone ( string setName ) : void

Adda Clone of the Set

ApplyAlphaCut ( ) : void

Zeroes out truthValues if they are below alphaCut threshold.

ApplyHedgeConDil ( double exp ) : void

Concentrates or Dilutes

ApplyHedges ( string hedges ) : void

Uses linguistic hedges to modify fuzzy set.

Defuzzify ( EnumFuzzyDefuzzifyMethod veDefuzzMethod ) : double

Defuzzify the Set

GetScalar ( int index ) : double

Retrives the scalar for the given index within the domain range.

GetTruthValue ( int index ) : double

Get the Truth Value

Membership ( double scalar ) : double

Retrieves the membership value for the given scalar value.

Normalize ( ) : void

Adjusts the truthValues so that the max is 1.0.

SegmentCurve ( int numberOfValues, double scalarVector, double aTruthVector ) : int[]

Retrieves the first and last points in a segment curve interpolated from the working truth vector.

VectorInterpret ( double aTruthVector ) : void

Fills in the bits in the truth vector.

Method Details

FuzzySet() protected method

Create a new Fuzzy Set
protected FuzzySet ( EnumFuzzySetType setType, string setName, ContinuousFuzzyRuleVariable parentVar, double alphaCut ) : System
setType EnumFuzzySetType
setName string
parentVar ContinuousFuzzyRuleVariable
alphaCut double
return System

FuzzySet() protected method

Create a new Fuzzy Set
protected FuzzySet ( EnumFuzzySetType setType, string setName, ContinuousFuzzyRuleVariable parentVar, double alphaCut, double domainLo, double domainHi ) : System
setType EnumFuzzySetType
setName string
parentVar ContinuousFuzzyRuleVariable
alphaCut double
domainLo double
domainHi double
return System

ToString() public method

Retrieves a string describing the contents of the object.
public ToString ( ) : string
return string

Property Details

mdAlphaCut protected_oe property

protected double mdAlphaCut
return double

mdDomainHi protected_oe property

protected double mdDomainHi
return double

mdDomainLo protected_oe property

protected double mdDomainLo
return double

mdTruthVector protected_oe property

protected double[] mdTruthVector
return double[]

meSetType protected_oe property

protected EnumFuzzySetType meSetType
return EnumFuzzySetType

moParentVar protected_oe property

protected ContinuousFuzzyRuleVariable,UnityAI.Core.Fuzzy moParentVar
return ContinuousFuzzyRuleVariable

msSetName protected_oe property

protected string msSetName
return string