|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.data.AbleLiteral | +--com.ibm.able.data.AbleFuzzySet
This class defines the Able data fuzzy set class.
Field Summary | |
---|---|
static double |
AlphaCutDefault
This is the default value used for alphacut when no explicit alphacut has been set. |
static int |
AlphaCutStrong
Strong alphacut. |
static int |
AlphaCutWeak
Weak alphacut. |
static int |
CorrelationMethodDefault
Correlation method. |
static int |
CorrelationMethodMinimise
Correlation method: Minimise: truncate the consequent fuzzy region at the truth of the premise (creating a plateau): |
static int |
CorrelationMethodProduct
Correlation method: Product: scale the consequent fuzzy region using the truth of the predicate (the shape of the fuzzy region is preserved): |
static int |
DefuzzifyMethodAverageHeight
Defuzzification method: Average: Take the average value of the fuzzy set. |
static int |
DefuzzifyMethodCentroid
Defuzzification method: Centroid: Take the center of the fuzzy region. |
static int |
DefuzzifyMethodDefault
Defuzzification method. |
static int |
DefuzzifyMethodMaxHeight
Defuzzification method: MaxHeight: Take the value at the highest point. |
static int |
FUZZY_ADD
Inference (implication) method: FuzzyAdd: also known as bounded add; the minimum of 1 and the sum of the membership values: |
static int |
FuzzyInferenceMethodDefault
Fuzzy Inference (implication) method default: FuzzyAdd: |
static char |
HedgeAbout
Hedge: About: Approximation (2.0) on bell-shaped fuzzy sets. |
static char |
HedgeAbove
Hedge: Above: Restrict decreasing directional or bell-shaped fuzzy sets. |
static char |
HedgeBelow
Hedge: Below: Restrict increasing directional or bell-shaped fuzzy sets. |
static char |
HedgeCloseTo
Hedge: CloseTo: Narrow approximation (1.2) on bell-shaped fuzzy sets. |
static char |
HedgeExtremely
Hedge: Extremely: Concentrate (3) any fuzzy set. |
static char |
HedgeGenerally
Hedge: Generally: Diffuse (**0.5) any fuzzy set. |
static char |
HedgeInVicinityOf
Hedge: InVicinityOf: Broad approximation (4.0) on bell-shaped fuzzy sets. |
static char |
HedgeNot
Hedge: Not: Complement any fuzzy set. |
static char |
HedgeNull
Hedge: Null: Ignored hedge, can be used as a place holder in a hedge string. |
static char |
HedgePositively
Hedge: Positively: Intensify (**2) any fuzzy set. |
static char |
HedgeSlightly
Hedge: Slightly: Dilute (0.3) any fuzzy set. |
static char |
HedgeSomewhat
Hedge: Somewhat: Dilute (0.5) any fuzzy set. |
static char |
HedgeVery
Hedge: Very: Concentrate (2) any fuzzy set. |
static int |
MaxValues
The maximum number of scalars and truth values that can be held in a fuzzy set. |
static int |
MIN_MAX
Inference (implication) method: MinMax: the maximum (of the minimum) membership values: |
protected double |
myAlphaCut
|
protected boolean |
myComplementFlag
|
protected java.lang.String |
myComplementName
|
protected double |
myDomainHi
|
protected double |
myDomainLo
|
protected double |
myFlexFactor
|
protected int |
myNumberOfValues
|
protected AbleFuzzyVariable |
myParentVar
|
protected double |
myPtBeg
|
protected double |
myPtCenter
|
protected double |
myPtEnd
|
protected double |
myPtFlex
|
protected double |
myPtLeft
|
protected double |
myPtLeftCore
|
protected double |
myPtRight
|
protected double |
myPtRightCore
|
protected double[] |
myScalarVecSav
|
protected int |
mySetDir
|
protected java.lang.String |
mySetName
|
protected int |
mySetType
|
protected double[] |
myTruthVecSav
|
protected double[] |
myTruthVector
|
protected double |
myWeight
|
protected double |
myWidth
|
static int |
PRODUCT_OR
Inference (implication) method: ProductOr: |
static int |
SetDirectionDown
Set direction: Down: for linear and sigmoid sets. |
static int |
SetDirectionLeft
Set direction: Left: for shoulder sets. |
static int |
SetDirectionRight
Set direction: Right: for shoulder sets. |
static int |
SetDirectionUp
Set direction: Up: for linear and sigmoid sets. |
static int |
SetTypeBeta
Set type: Beta: bell-shaped curve |
static int |
SetTypeGaussian
Set type: Gaussian: bell-shaped curve |
static int |
SetTypeLinear
Set type: Linear: straight line |
static int |
SetTypePi
Set type: Pi: bell-shaped curve |
static int |
SetTypeSegments
Set type: Segments: Straight line segments interpolated between specified points |
static int |
SetTypeShoulder
Set type: Shoulder: Left or right plateaus |
static int |
SetTypeSigmoid
Set type: Sigmoid: S-shaped curves |
static int |
SetTypeTrapezoid
Set type: Trapezoid: plateau |
static int |
SetTypeTriangle
Set type: Triangle: |
static int |
SetTypeWork
Set type: Work: Used internally for copying and merging fuzzy set regions. |
Constructor Summary | |
---|---|
protected |
AbleFuzzySet(int theSetType,
java.lang.String theSetName,
AbleFuzzyVariable theParentVar,
double theAlphaCut,
double theDomainLo,
double theDomainHi)
Create a new fuzzy set. |
Method Summary | |
---|---|
java.lang.String |
arlCRdString()
Return a formal ARL "clause read" string that describes this data object. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
static java.lang.String |
CorrelationMethod(int theItem)
Given a CorrelationMethod constant, return a debug string. |
static java.lang.String |
CorrelationMethodRl(int theItem)
Given a CorrelationMethod constant, return a rule language string. |
static java.lang.String |
CorrelationMethodXml(int theItem)
Given a CorrelationMethod constant, return an XML string. |
static java.lang.String |
DefuzzifyMethod(int theItem)
Given a DefuzzifyMethod constant, return a debug string. |
static java.lang.String |
DefuzzifyMethodRl(int theItem)
Given a DefuzzifyMethod constant, return a rule language string. |
static java.lang.String |
DefuzzifyMethodXml(int theItem)
Given a DefuzzifyMethod constant, return an XML string. |
static java.lang.String |
FuzzyInferenceMethod(int theItem)
Given an inference method constant, return a human readable string of that constant. |
static java.lang.String |
FuzzyInferenceMethodRl(int theItem)
|
static java.lang.String |
FuzzyInferenceMethodXml(int theItem)
|
double |
getAlphaCut()
|
boolean |
getBooleanValue()
Retrieve the value of this data object as a boolean value. |
int |
getDataType()
Retrieve the data type of this data object. |
java.lang.Class |
getDataTypeClass()
Retrieve the actual class of this object's underlying data type. |
java.lang.String |
getDataTypeClassName()
Retrieve the name of the class of this object's underlying data type. |
double |
getDomainHi()
|
double |
getDomainLo()
|
double |
getFlexFactor()
|
AbleFuzzySet |
getFuzzyValue()
Retrieve the value of this data object as a fuzzy value. |
java.lang.Object |
getGenericValue()
Retrieve the value of this data object as an Object. |
int |
getNumberOfValues()
|
double |
getNumericValue()
Retrieve the value of this data object as a numeric value. |
double |
getPtBeg()
|
double |
getPtCenter()
|
double |
getPtEnd()
|
double |
getPtFlex()
|
double |
getPtLeft()
|
double |
getPtLeftCore()
|
double |
getPtRight()
|
double |
getPtRightCore()
|
int |
getReferent()
Retrieve the Id of the variable to which this data object refers, if any. |
double[] |
getScalarVector()
|
int |
getSetDir()
|
java.lang.String |
getSetName()
|
java.util.Vector |
getSetProperties()
|
int |
getSetType()
|
java.lang.String |
getStringValue()
Retrieve the value of this data object as a string value. |
double[] |
getTruthValues()
|
double[] |
getTruthVector()
|
AbleLiteral |
getValue()
Retrieve the value of this data object as a literal. |
double |
getWeight()
|
double |
getWidth()
|
static java.lang.String |
Hedge(char theItem)
Given a Hedge constant, return a debug string. |
static java.lang.String |
HedgeRl(char theItem)
Given a Hedge constant, return a rule language string. |
static java.lang.String |
HedgeXml(char theItem)
Given a Hedge constant, return an XML string. |
void |
setAlphaCut(double theAlphaCut)
|
static java.lang.String |
SetDirection(int theItem)
Given a SetDirection constant, return a debug string. |
static java.lang.String |
SetDirectionRl(int theItem)
Given a SetDirection constant, return a rule language string. |
static java.lang.String |
SetDirectionXml(int theItem)
Given a SetDirection constant, return an XML string. |
static java.lang.String |
SetType(int theItem)
Given a SetType constant, return a debug string. |
static java.lang.String |
SetTypeRl(int theItem)
Given a SetType constant, return a rule language string. |
static java.lang.String |
SetTypeXml(int theItem)
Given a SetType constant, return an XML string. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
java.lang.String |
traceString(int theTraceStringFlavor)
Retrieve a string describing (the contents of) the object. |
java.lang.String |
xmlCRdString()
Return a formal XML "clause read" string that describes this data object. |
Methods inherited from class com.ibm.able.data.AbleLiteral |
---|
bitwiseAND, bitwiseNOT, bitwiseOR, bitwiseShiftLeft, bitwiseShiftRight, bitwiseShiftRightZeroFill, bitwiseXOR, cmpEq, cmpGt, cmpGtEq, cmpIs, cmpLt, cmpLtEq, cmpNeq, compDivide, compMinus, compModulo, compMultiply, compPlus, compUnaryMinus, getDataTypeAsString, getReferents, getTemplateString, isConstant, logicalAND, logicalNOT, logicalOR |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MaxValues
public static final char HedgeNull
public static final char HedgeAbout
public static final char HedgeAbove
public static final char HedgeBelow
public static final char HedgeCloseTo
public static final char HedgeExtremely
public static final char HedgeGenerally
public static final char HedgeInVicinityOf
public static final char HedgeNot
public static final char HedgePositively
public static final char HedgeSlightly
public static final char HedgeSomewhat
public static final char HedgeVery
public static final int SetDirectionUp
public static final int SetDirectionDown
public static final int SetDirectionLeft
public static final int SetDirectionRight
public static final int SetTypeBeta
public static final int SetTypeGaussian
public static final int SetTypeLinear
public static final int SetTypePi
public static final int SetTypeSegments
public static final int SetTypeShoulder
public static final int SetTypeSigmoid
public static final int SetTypeTrapezoid
public static final int SetTypeTriangle
public static final int SetTypeWork
public static final double AlphaCutDefault
In this implementation, the default is set to 0.10.
public static final int AlphaCutStrong
public static final int AlphaCutWeak
public static final int CorrelationMethodProduct
a[i] = a[i] * PredicateTruth
Usually used with InferenceMethod ProductOr or FuzzyAdd.
public static final int CorrelationMethodMinimise
a[i] = minimum( a[i], PredicateTruth )
Usually used with InferenceMethod MinMax.
public static final int CorrelationMethodDefault
In this implementation, the default is set to Product.
public static final int DefuzzifyMethodCentroid
public static final int DefuzzifyMethodMaxHeight
public static final int DefuzzifyMethodAverageHeight
public static final int DefuzzifyMethodDefault
In this implementation, the default is set to Centroid.
public static final int FUZZY_ADD
minimum( 1, a[i]+b[i] )
Usually used with Product correlation method.
public static final int MIN_MAX
maximum( a[i], b[i] )
Almost always used with Minimise correlation method.
public static final int PRODUCT_OR
1 - ( (1-a[i]) * (1-b[i]) )
Usually used with Product correlation method.
public static final int FuzzyInferenceMethodDefault
protected int mySetType
protected java.lang.String mySetName
protected double myAlphaCut
protected double myDomainLo
protected double myDomainHi
protected double[] myTruthVector
protected AbleFuzzyVariable myParentVar
protected java.lang.String myComplementName
protected boolean myComplementFlag
protected double myPtBeg
protected double myPtCenter
protected double myPtEnd
protected double myPtFlex
protected double myPtLeft
protected double myPtLeftCore
protected double myPtRightCore
protected double myPtRight
protected double myFlexFactor
protected int mySetDir
protected double myWeight
protected double myWidth
protected int myNumberOfValues
protected double[] myScalarVecSav
protected double[] myTruthVecSav
Constructor Detail |
protected AbleFuzzySet(int theSetType, java.lang.String theSetName, AbleFuzzyVariable theParentVar, double theAlphaCut, double theDomainLo, double theDomainHi)
theSetType
- A SetType constant specifying the type of this fuzzy
set.
theSetName
- The name of this fuzzy set.
theParentVar
- A reference to the fuzzy variable that contains this
fuzzy set.
theAlphaCut
- The low cut-off value for this fuzzy set.
theDomainLo
- The low value of the domain of this fuzzy set.
theDomainHi
- The high value of the domain of this fuzzy set.
Method Detail |
public static final java.lang.String CorrelationMethod(int theItem)
public static final java.lang.String CorrelationMethodRl(int theItem)
public static final java.lang.String CorrelationMethodXml(int theItem)
public static final java.lang.String DefuzzifyMethod(int theItem)
public static final java.lang.String DefuzzifyMethodRl(int theItem)
public static final java.lang.String DefuzzifyMethodXml(int theItem)
public static final java.lang.String FuzzyInferenceMethod(int theItem)
theItem
- An inference method constant.
public static final java.lang.String FuzzyInferenceMethodRl(int theItem)
public static final java.lang.String FuzzyInferenceMethodXml(int theItem)
public static final java.lang.String Hedge(char theItem)
public static final java.lang.String HedgeRl(char theItem)
public static final java.lang.String HedgeXml(char theItem)
public static final java.lang.String SetDirection(int theItem)
public static final java.lang.String SetDirectionRl(int theItem)
public static final java.lang.String SetDirectionXml(int theItem)
public static final java.lang.String SetType(int theItem)
public static final java.lang.String SetTypeRl(int theItem)
public static final java.lang.String SetTypeXml(int theItem)
public final double getPtBeg()
public final double getPtCenter()
public final double getPtEnd()
public final double getPtFlex()
public final double getPtLeft()
public final double getPtLeftCore()
public final double getPtRightCore()
public final double getPtRight()
public final double getFlexFactor()
public final int getSetDir()
public final double getWeight()
public final double getWidth()
public final int getNumberOfValues()
public final double[] getScalarVector()
public final double[] getTruthVector()
public boolean getBooleanValue() throws AbleDataException
getBooleanValue
in class AbleLiteral
AbleDataException
- If the value of this object cannot be represented as
a boolean value.public AbleFuzzySet getFuzzyValue() throws AbleDataException
getFuzzyValue
in class AbleLiteral
AbleDataException
- If the value of this object cannot be represented as
a fuzzy value.public java.lang.Object getGenericValue() throws AbleDataException
getGenericValue
in class AbleLiteral
AbleDataException
- If the value of this object cannot be represented as
an Object.public double getNumericValue() throws AbleDataException
getNumericValue
in class AbleLiteral
AbleDataException
- If the value of this object cannot be represented as
a numeric value.public java.lang.String getStringValue() throws AbleDataException
getStringValue
in class AbleLiteral
AbleDataException
- If the value of this object cannot be represented as
a string value.public AbleLiteral getValue() throws AbleDataException
getValue
in class AbleLiteral
AbleDataException
- If the value of this object cannot be represented as
a literal.public int getReferent()
getReferent
in class AbleLiteral
public java.lang.String arlCRdString()
arlCRdString
in class AbleLiteral
public java.lang.String xmlCRdString()
xmlCRdString
in class AbleLiteral
public final int getSetType()
public final java.lang.String getSetName()
public final void setAlphaCut(double theAlphaCut)
public final double getAlphaCut()
public final double getDomainLo()
public final double getDomainHi()
public final double[] getTruthValues()
public java.util.Vector getSetProperties()
public java.lang.Class getDataTypeClass()
AbleLiteral
getDataTypeClass
in class AbleLiteral
com.ibm.able.data.AbleLiteral
public java.lang.String getDataTypeClassName()
AbleLiteral
getDataTypeClassName
in class AbleLiteral
com.ibm.able.data.AbleLiteral
public java.lang.String toString()
toString
in class AbleLiteral
public java.lang.String traceString(int theTraceStringFlavor)
traceString
in class AbleLiteral
theFlavor
- An Able.TraceStringFlavor value.
public static java.lang.String Copyright()
public int getDataType()
AbleLiteral
getDataType
in class AbleLiteral
AbleRd.getDataType()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |