|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nrc.fuzzy.AntecedentCombineOperator | +--nrc.fuzzy.CompensatoryAndAntecedentCombineOperator
A class that provides a special operator referred to as the 'compensatory and' operator to combine the fuzzy match values of antecedent/input pairs in a rule when a rule is fired which has multiple antecedents.
The formula for the operator is:
u = (PROD(u(i)))**(1-gamma) * (1-(PROD(1-u(i))))**gamma where PROD(u(i)) means the product of a set of values u(i), with i ranging from 1 to m and gamma is a value between 0 and 1 that controls the 'compensation'. (the default gamma value is 0.562)
AntecedentCombineOperator
,
MinimumAntecedentCombineOperator
,
ProductAntecedentCombineOperator
,
FuzzyRule
,
Serialized FormConstructor Summary | |
CompensatoryAndAntecedentCombineOperator()
Constructor to create an object with the default gamma value of 0.562. |
|
CompensatoryAndAntecedentCombineOperator(double g)
Constructor to create an object with the specified gamma value. |
Method Summary | |
double |
execute(double[] matchValues)
Implements the 'compensatory and' of the match values in the double array. |
double |
getGamma()
Get the gamma value used in the Compensatory And calculation |
void |
setGamma(double g)
Set the gamma value used in the Compensatory And calulation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompensatoryAndAntecedentCombineOperator()
public CompensatoryAndAntecedentCombineOperator(double g)
g
- the gamma value for the objectMethod Detail |
public void setGamma(double g)
g
- the gamma value to be set (must be between 0 and 1)public double getGamma()
public double execute(double[] matchValues)
execute
in interface AntecedentCombineOperatorInterface
matchValues
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |